Research Menu

.
Skip Search Box

SELinux Mailing List

Re: About SELinux in Ubuntu

From: Stephen Smalley <sds_at_tycho.nsa.gov>
Date: Fri, 29 Aug 2008 09:06:36 -0400

On Thu, 2008-08-28 at 15:44 -0400, Hong wrote:
> I am trying to use SELinux in Ubuntu 8.04. Looks like refpolicy is
> the only supported policy in the repository.
> I downloaded policy.22 (refpolicy). The size of the binary policy is
> about 360K(accurate size is 360296), much smaller than targeted policy
> in Fedora8. (about 3.5M).
>
> Then I use dispol tool in checkpolicy to display the policy, seems
> there are no many useful domains in the policy. There is no htttpd
> domain, no ftpd domain...

As I understand it, they only shipped a minimal policy and a cupsd policy module as a starting point, to match the original configuration of AppArmor. I'm not sure what progress has been made since then. You can of course try building and using the upstream refpolicy with a more complete configuration.

> And the access vector really confuses me. For example, I think the
> domain insmod_t should be entered through insmod, rmmod, ...
> But from the policy, domain insmod_t has the entrypoint privilege
> over a lot of types: hplip_etc_t, lpd_tmp_t, proc_afs_t,
> pam_tmp_t, ... (there are more than 300 of them).
>
> Did I do anything wrong? And if I am getting the correct binary
> policy, why the entrypoint privilege is configure this way?

I'd guess that insmod_t is an unconfined domain in that policy (typical for a targeted-style policy), and thus is unrestricted.

-- 
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing 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.
Received on Fri 29 Aug 2008 - 09:06:37 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service