Skip to contentSkip to conversation

Additional permissions that appear to be necessary

DISCUSSION Justin Smith 2 participants 2 messages Jan 29, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

This is apart from those made necessary by my own policy configuration (i.e., they probably apply to all Redhat 7.2 installations):

allow initrc_t initrc_t:socket { create };

allow kmod_t kmod_t:capability { setuid };

allow logrotate_t logrotate_t:capability { sys_pacct };

allow system_crond_t etc_t:dir { setattr write }; allow system_crond_t file_labels_t:dir { setattr }; allow system_crond_t var_lib_rpm_t:dir { add_name write }; allow system_crond_t var_lib_rpm_t:file { create read write }; allow system_crond_t var_log_t:file { setattr write };

The last 5 lines only appear after running a system for several days so that its periodic maintenance is performed.

Signature · 4 lines
--
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 4 lines · Justin Smith

This is apart from those made necessary by my own policy configuration (i.e., they probably apply to all Redhat 7.2 installations):

allow initrc_t initrc_t:socket { create };

I've seen this permission denial associated with the iwconfig program on RH7.2. Do you really need to run iwconfig (configure a wireless network interface)? If not, why grant this permission?

The correct way to handle this denial would be to define new security class for the protocol family used by iwconfig (it falls back to the generic 'socket' class since it isn't recognized by the SELinux module) and to define a domain for the iwconfig program.

Quoted 1 line

allow kmod_t kmod_t:capability { setuid };

I haven't seen this denial on RH7.2, but it seems harmless (kmod_t is the domain associated with the kernel thread that invokes user mode helpers, such as modprobe or hotplug).

Quoted 1 line

allow logrotate_t logrotate_t:capability { sys_pacct };

I don't see this denial, and I'm not sure why logrotate would need this capability (configuration of process accounting).

Quoted 2 lines

allow system_crond_t etc_t:dir { setattr write }; allow system_crond_t file_labels_t:dir { setattr };

I don't see either of these denials, and it seems undesirable to grant these permissions.

Quoted 6 lines

allow system_crond_t var_lib_rpm_t:dir { add_name write }; allow system_crond_t var_lib_rpm_t:file { create read write }; allow system_crond_t var_log_t:file { setattr write };

The last 5 lines only appear after running a system for several days so that its periodic maintenance is performed.

These are associated with running the rpm utilities. We are likely to add a new domain (and a new log type) for this purpose rather than directly granting these permissions to system_crond_t.

--
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.