Page 1 of 1

/dev/grsec device is not properly installed

PostPosted: Sat Feb 09, 2013 10:59 am
by KDE
Hello,
when I start full learning from command line gradm works fine
but when full learning is started by init script /etc/init.d/localmount, gradm is broken

# gradm -S
The RBAC system is currently disabled.

# gradm -P
Setting up grsecurity RBAC password
Password:
Re-enter Password:
Password written to /etc/grsec/pw.

# gradm -P admin
Setting up password for role admin
Password:
Re-enter Password:
Password written to /etc/grsec/pw.

# gradm -F -L /etc/grsec/learning.logs

# gradm -S
The RBAC system is currently enabled.

# gradm -D
Password:

following line is inserted into /etc/init.d/localmount function start(), after "Mounting local filesystems", before "return 0":
gradm -F -L /etc/grsec/learning.logs

# reboot

# gradm -S
The /dev/grsec device is not properly installed on your system or you are not using a grsecurity kernel.

# gradm -D
Password:
Invalid password.

# gradm -a admin
Password:
Invalid password.

learning is active as file /etc/grsec/learning.logs is growing

Gentoo Hardened,
grsecurity-2.9.1-3.7.6-201302071938.patch
gradm-2.9.1-201301041755.tar.gz

Re: /dev/grsec device is not properly installed

PostPosted: Thu Aug 21, 2014 5:30 pm
by PingLord
Happened to me too.I've built the policy , the system was running for 4 days and in the fifth day i did a gradm -S and the error appeared :

The /dev/grsec device is not properly installed on your system or you are not using a grsecurity kernel.

Anyone has a solution to this ?

Im running a CentOs 6.5 with kernel version : 3.2.46-4.el6.x86_64