Skip to contentSkip to conversation

suggested policy change

DISCUSSION Justin Smith 2 participants 2 messages Mar 6, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

Adding the rules:

# policy/domains/system/kmod.te
allow kmod_t sysctl_kernel_t:file rw_file_perms;
# policy/domains/program/modutil.te
allow insmod_t sysctl_kernel_t:file rw_file_perms;

results in the error messages:

error in the statement ending on line 25688 (token ';'): assertion
failed: allow kmod_t sysctl_kernel_t:file { write append } was granted.

error in the statement ending on line 25688 (token ';'): assertion
failed: allow insmod_t sysctl_kernel_t:file { write append } was granted.

i.e., they conflict with some of the neverallow rules. Should I simply get rid of the appropriate neverallow rules?

--

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 2 lines · Justin Smith

i.e., they conflict with some of the neverallow rules. Should I simply get rid of the appropriate neverallow rules?

I changed the existing neverallow rule in assert.te to include kmod_t and insmod_t in the list for this assertion, i.e.:

neverallow ~{ initrc_t admin kmod_t insmod_t } sysctl_kernel_t:file { write append };

--
Stephen D. Smalley, NAI Labs
[email protected]

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.