Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id t3NLEEnj010547 for ; Thu, 23 Apr 2015 17:14:14 -0400 From: "Spector, Aaron" To: "SELinux (selinux@tycho.nsa.gov)" Subject: Switching to enforcing mode introduces new policy issues? Date: Thu, 23 Apr 2015 21:14:07 +0000 Message-ID: <363d72e72db54ed2a93f39f76d1811fd@MIVEXUSR1N01.corpzone.internalzone.com> Content-Type: multipart/alternative; boundary="_000_363d72e72db54ed2a93f39f76d1811fdMIVEXUSR1N01corpzoneint_" MIME-Version: 1.0 List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: --_000_363d72e72db54ed2a93f39f76d1811fdMIVEXUSR1N01corpzoneint_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, I've been working on writing my first policy for SELinux and I've hit a bit= of a snag. I've gotten the policy clean in permissive mode, but when I swa= p the system over to enforcing, a whole new set of policy issues crop up. E= verything I've read says this isn't to be expected so I'm a bit confused as= to what's happening. Output from sestatus when in permissive mode is: SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: default Current mode: permissive Mode from config file: permissive Policy MLS status: enabled Policy deny_unknown status: denied Max kernel policy version: 29 I'm running a version 26 policy and a 3.16.7 kernel. It seems like the majority of the new deny audits are about the need for se= arch permissions on directories between types that already have what I beli= eve are the necessary file permissions. So far what I've had to do to get around it is to add to my policy, but tha= t doesn't seem like that should be necessary. If the audit is clean in perm= issive mode, why isn't it clean in enforcing? Is it possible that I'm missing policy deny audits when it's in permissive = mode? Thanks, -Aaron --_000_363d72e72db54ed2a93f39f76d1811fdMIVEXUSR1N01corpzoneint_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi all,

 

I’ve been working on writing my first policy f= or SELinux and I’ve hit a bit of a snag. I’ve gotten the policy= clean in permissive mode, but when I swap the system over to enforcing, a = whole new set of policy issues crop up. Everything I’ve read says this isn’t to be expected so I’m a bit confused as t= o what’s happening. Output from sestatus when in permissive mode is:<= o:p>

 

SELinux status:      &= nbsp;          enabled

SELinuxfs mount:      =           /sys/fs/selinux=

SELinux root directory:     = ;    /etc/selinux

Loaded policy name:     &nb= sp;       default

Current mode:      &nb= sp;            permi= ssive

Mode from config file:     =      permissive

Policy MLS status:     &nbs= p;        enabled

Policy deny_unknown status:     = denied

Max kernel policy version:    &n= bsp; 29

 

I’m running a version 26 policy and a 3.16.7 k= ernel.

 

It seems like the majority of the new deny audits ar= e about the need for search permissions on directories between types that a= lready have what I believe are the necessary file permissions.

 

So far what I’ve had to do to get around it is= to add to my policy, but that doesn’t seem like that should be neces= sary. If the audit is clean in permissive mode, why isn’t it clean in= enforcing?

 

Is it possible that I’m missing policy deny au= dits when it’s in permissive mode?

 

 

Thanks,

 

-Aaron

 

--_000_363d72e72db54ed2a93f39f76d1811fdMIVEXUSR1N01corpzoneint_--