something strange with my system: it seems like grsecurity has locked itself.
I actively write policies, start and stop grsecurity ACL system, and in some moment i have this:
i am root, under 'admin' special role, which is allowed to do all. i`ve changed some ACLs and want to restart grsec with new ACLs.
Now i run 'gradm -D' and enter password. It complains about 'invalid password' and nothing happens.
When i run gradm -S it shows nothing.
I ran strace gradm -S and here is result:
- Code: Select all
..........
brk(0x8421000) = 0x8421000
getcwd("/etc/grsec/roles/root", 4095) = 22
mlock(0x5a1b20f0, 256) = 0
ioctl(0, TIOCEXCL, 0) = 0
open("/dev/grsec", O_WRONLY) = 3
write(3, "0\376\32Z\26\2\0\0\34\1\0\0", 12) = -1 EPERM (Operation not permitted)
close(3) = 0
ioctl(0, TIOCNXCL, 0xc) = 0
exit_group(0) = ?
gradm is unable to open /dev/grsec ?
I ran then strace gradm -D: (pass is set to 'secret')
- Code: Select all
....
getcwd("/etc/grsec/roles/root", 4095) = 22
mlock(0x5f3ad530, 256) = 0
ioctl(0, TIOCEXCL, 0) = 0
open("/dev/grsec", O_WRONLY) = 3
write(3, "p\262:_\26\2\0\0\34\1\0\0", 12) = -1 EPERM (Operation not permitted)
close(3) = 0
mlock(0x5f3ab250, 256) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2db84000
write(1, "Password: ", 10Password: ) = 10
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon -echo ...}) = 0
read(0, "secret\n", 128) = 7
write(1, "\n", 1
) = 1
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo ...}) = 0
mlock(0x85f8718, 284) = 0
open("/dev/grsec", O_WRONLY) = 3
write(3, "\30\207_\10\26\2\0\0\34\1\0\0", 12) = -1 EPERM (Operation not permitted)
write(2, "Invalid password.\n", 18Invalid password.
) = 18
close(3) = 0
ioctl(0, TIOCNXCL, 0x12) = 0
munmap(0x2db84000, 4096) = 0
exit_group(1) = ?
What`s going on?