Skip to contentSkip to conversation

selinux-policy-targeted (1:1.22-2) available

DISCUSSION Lorenzo Hernández García-Hierro 3 participants 6 messages Mar 27, 2005 – Apr 13, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

I'm (very) glad to announce the availability of the first targeted policy package for Debian and more concretely Ubuntu Linux (this package is Ubuntu-dependent because of the versions of logrotate, libselinux1, etc, in which it relies, to be fixed when Debian consolidates userland for SELinux support and accepts the patches).

The policy source itself has nothing to do Russell Coker's old selinux-policy-default, but the package is based on his one, this mean,s same configuration method.Of course it has been updated to complain with the current Debian Policy (sigh) and some building errors have been fixed (most notably are related with changes ported out of Fedora's targeted policy specs).

I encourage all of those interested in SELinux deployment in Ubuntu Linux (and subsequently, Debian) to check the package, report errors to this list (we still don't have our bug reporting area like Hardened Gentoo has within the Gentoo bugzilla, I hope to solve this soon with the Ubuntu folks) or directly to me, make suggestions, send patches...

The http://www.ubuntulinux.org/wiki/SELinux wiki page has been updated to reflect the changes.
The current percentage of work done amounts to 75%, if talking in basic deployment terms, but we could talk about a percentage of 87.5% as coreutils just need a fixed (and updated) Linux-PAM [1], among a few fixes, currently available and provided with SELinux support, but has to be reviewed by a Debian developer or an Ubuntu maintainer.

dpkg is left, thus, the targeted policy package still installs the suboptimal selinux dpkg postinst script, being replace by Manoj's changes when I get the clean diff for dpkg from him.

Among that, the configuration method needs to be reworked and I would like to know who could take care of it, as I wouldn't have time for it.

Package available at:
http://pearls.tuxedo-es.org/selinux/ubuntu/selinux-policy-targeted/

[1]:
http://pearls.tuxedo-es.org/selinux/ubuntu/pam/

Cheers,

Signature · 2 lines
Lorenzo Hernández García-Hierro <[email protected]> 
[1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org]
#1 lore raw
Quoted 2 lines · Lorenzo Hernández García-Hierro

I'm (very) glad to announce the availability of the first targeted policy package for Debian and more concretely Ubuntu Linux

Very cool, I'm excited about this.

Quoted 3 lines

The policy source itself has nothing to do Russell Coker's old selinux-policy-default, but the package is based on his one, this mean,s same configuration method.

I assume you mean this:

+ print "Do you want $file:" . substr($line, 6);
+ print "Yes/No/Display [Y/n/d]? ";

I suggest that you simply delete this code entirely, and install every .te file. It's outdated for several reasons:

1) With the new dynamic boolean support, SELinux enforcement for a particular daemon can be turned off at runtime, instead of at policy build time.
2) The targeted policy is significantly smaller than the strict, so there are no space/size concerns.
3) It's always been annoying as hell :)

#2 lore raw
Quoted 9 lines · Colin Walters

I assume you mean this:

(quoted diff) +2 -0
+        print "Do you want $file:" . substr($line, 6);
+        print "Yes/No/Display [Y/n/d]? ";

I suggest that you simply delete this code entirely, and install every .te file. It's outdated for several reasons:

3) It's always been annoying as hell :)

Yeah, an automatic install/configurator project I was working on in spare time foundered on that ever changing reef of dependencies and name changes...

Signature · 7 lines
------------------------------------------------------
   Dale Amon     [email protected]    +44-7802-188325
       International linux systems consultancy
     Hardware & software system design, security
    and networking, systems programming and Admin
	      "Have Laptop, Will Travel"
------------------------------------------------------
#4 lore raw
In reply to Colin Walters
Quoted 1 line · Colin Walters

Very cool, I'm excited about this.

We'll see how well it works.
If not, then blame at me ;)

Quoted 8 lines

I assume you mean this:

(quoted diff) +2 -0
+        print "Do you want $file:" . substr($line, 6);
+        print "Yes/No/Display [Y/n/d]? ";

I suggest that you simply delete this code entirely, and install every .te file. It's outdated for several reasons:

Quoted 6 lines

1) With the new dynamic boolean support, SELinux enforcement for a particular daemon can be turned off at runtime, instead of at policy build time.
2) The targeted policy is significantly smaller than the strict, so there are no space/size concerns.
3) It's always been annoying as hell :)

Done, I'm doing some improvements for the -3 revision.

Now I need to do other stuff, I'll upload the new package later.

Cheers and thanks for the help ;),

Signature · 2 lines
Lorenzo Hernández García-Hierro <[email protected]> 
[1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org]
#5 lore raw

selinux-policy-targeted (1:1.22-3) available

Hi,

The new selinux-policy-targeted (1:1.22-3) package is available.

Some improvements have been made to the package since the 1.22-2 version, the weird configuration method is not anymore used, post-installation script doesn't add a selinuxfs entry to your /etc/fstab everytime you (re)install or upgrade the package...

Changes are reflected at:
http://pearls.tuxedo-es.org/selinux/ubuntu/selinux-policy-targeted/
selinux-policy-targeted_1.22-3_i386.changes

The package is available at:
http://pearls.tuxedo-es.org/selinux/ubuntu/selinux-policy-targeted/

Continue making comments, suggestions and critics ;)

I don't want to seem impatient with the SELinux deployment in Ubuntu Linux, but the next 3 months I will have limited time, so, I want to have at least the 75% of the work done (it's around 87% now, just some more userland work and we are done for fine-tuning, etc), even if Breezy is far away from us (Hoary is still not released).
By doing this quickly and before others, and as soon as we start it, as soon as we will finish it, we gain momentum ;)

Cheers,

Signature · 2 lines
Lorenzo Hernández García-Hierro <[email protected]> 
[1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org]
#3 lore raw
In reply to Dale Amon
Quoted 6 lines · Dale Amon
Quoted 5 lines · Colin Walters

I assume you mean this:

(quoted diff) +2 -0
+        print "Do you want $file:" . substr($line, 6);
+        print "Yes/No/Display [Y/n/d]? ";
Quoted 8 lines
Quoted 4 lines

I suggest that you simply delete this code entirely, and install every .te file. It's outdated for several reasons:

3) It's always been annoying as hell :)

Yeah, an automatic install/configurator project I was working on in spare time foundered on that ever changing reef of dependencies and name changes...

We don't need that in the targeted policy package, but it would make sense as an independently packaged tool or included in the -strict policy package.

Cheers,

Signature · 2 lines
Lorenzo Hernández García-Hierro <[email protected]> 
[1024D/6F2B2DEC] & [2048g/9AE91A22][http://tuxedo-es.org]