Duplicate subject found for "/sbin/shutdown"

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

Duplicate subject found for "/sbin/shutdown"

Postby bryn1u » Fri Aug 07, 2015 1:29 am


I have been trying RBAC by gradm on two fresh os'es like Debian 8, and Centos 7.1. This error is the same on both linux distributions. I just install on new fresh debian and centos and recompile kernel with grsec. When i want to use gradm i got this error:

Code: Select all
root@Base:~/gradm# gradm -E
Duplicate subject found for "/sbin/shutdown" in role shutdown, on line 295 of /etc/grsec/policy.
"/sbin/shutdown" references the same object as "/sbin/halt" specified on an earlier line.
The RBAC system will not load until this error is fixed.

From vim /etc/grsec/policy
Code: Select all
295 subject /sbin/shutdown rvkao
296         / rwcdmlxi
297         /dev/initctl rwf
298         /run/initctl rwf

Posts: 10
Joined: Mon Sep 13, 2010 6:36 am

Return to grsecurity support