access denied after password change

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

access denied after password change

Postby salam » Tue Oct 31, 2006 12:39 pm

i've created a test user
i've logged in with ssh and changed the password (all went fine)
user can log back in with ssh, but immediately after i changed his password i was unable to "su - user" to him. logs returned a message:

(me:U:/bin/su) denied access to hidden file /etc/shadow by /bin/su[su:12378] uid/euid:1000/0

1000 is my uid UID

this is the subject ACL for user "me" uid 1000:

Code: Select all
subject /bin/su o {
/ h
/dev h
/dev/console rw
/dev/tty rw
/dev/pts rw
/dev/log rw
/dev/urandom r
/etc/group r
/etc/ld.so.cache r
/etc/login.defs r
/etc/nsswitch.conf r
/etc/pam.d r
/etc/passwd r
/etc/security/limits.conf r
/etc/security/pam_env.conf r
/etc/shadow rw
/etc/shells r
/home r
/lib64 rx
/proc r
/root r
/usr/share/zoneinfo r
/var/run r
/var/run/utmp rw
-CAP_ALL
+CAP_SETGID
+CAP_SETUID
+CAP_SYS_RESOURCE
+CAP_SYS_TTY_CONFIG
bind    disabled
connect disabled
}


so the subject should have access to /etc/shadow

this problem only appears when the shadow file content changes(user changes his password), reloading the rules helps but this is not a way to solve the problem. does grsec keep some checksums of the objects and when it changes, then access is denied? can this be solved somehow?
salam
 
Posts: 27
Joined: Wed Jul 19, 2006 7:22 am

Postby spender » Sun Nov 05, 2006 3:49 pm

Which version of grsecurity are you using?

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Postby salam » Thu Nov 09, 2006 6:20 am

i'm using the one integrated with gentoo hardened sources, kernel version 2.6.16-hardened-r11 and gradm-2.1.9.200602141850
salam
 
Posts: 27
Joined: Wed Jul 19, 2006 7:22 am


Return to grsecurity support

cron