All of lore.kernel.org
 help / color / mirror / Atom feed
* Additional permissions that appear to be necessary
@ 2002-01-29 16:51 Justin Smith
  2002-01-29 17:10 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Justin Smith @ 2002-01-29 16:51 UTC (permalink / raw)
  To: SELinux

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.

-- 


--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Additional permissions that appear to be necessary
  2002-01-29 16:51 Additional permissions that appear to be necessary Justin Smith
@ 2002-01-29 17:10 ` Stephen Smalley
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2002-01-29 17:10 UTC (permalink / raw)
  To: Justin Smith; +Cc: SELinux


On 29 Jan 2002, Justin Smith wrote:

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

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

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

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

> 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
ssmalley@nai.com




--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-29 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-29 16:51 Additional permissions that appear to be necessary Justin Smith
2002-01-29 17:10 ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.