[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mdadm policy
> What naming conventions did I miss?
The bin type should be named mdadm_exec_t, not mdadm_bin_t
> Thanks for the policy, it is definitely much cleaner with macros
> (although fundamentally not that different - which is good news for me),
It's Colin Walters' policy according to the header.
> Just few questions, does it really need:
> * read access to all of etc_t and etc_runtime_t?
The current policy assumes that etc_t and etc_runtime_t
are not protected types. It takes the opposite approach of
marking specific types that should be protected. I find
this rather undesirable, but that's the way it is done...
Those rules are usually added to access /etc/fstab and
/etc/mtab.
> * self:capability dac_override ipc_lock
This looks interesting...
> * read_sysctl(mdadm_t)
> * r_dir_file(mdadm_t, sysfs_t)
> * read_locale(mdadm_t)
> Anyone know? Mine works without them.
Not sure, but those don't seem too much of a threat.
How do you know it works without them? Your setup
is just one of many...
> I guess it allows execution of /bin and /sbin for the "PROGRAM" user
> defined action, so I could keep it more restricted by only allowing
> execution of sendmail_exec_t for my use.
Perhaps...
Note that the execution occurs without a transition (execute_no_trans),
which means that while executing the sub-program, it runs in
the same confined domain.
> Since this is the only
> statement in the policy that allows execution of external code, it feels
> like the most important place to put restrictions on.
See above - execution of external code isn't so much of a problem
as long as it occurs in the same domain. If the external code
does anything undesirable, it will be done in the mdadm domain.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.
This mailing list archive is a service of Copilot Consulting.