When i want to set password for special role, gradm asks for password twice, then writes 'Password written to /etc/grsec/pw.' and freezes.
I`m using gentoo and sys-apps/gradm-2.1.6.200506131347.
kernel is 2.4.31-hardened.
..........
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) = ?
....
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) = ?