SE Linux packages of login, sshd, tar, stat, findutils, fileutils, and [xkg]dm
Below is a message I just posted to the debian Developers list about my latest test packages (not uploaded to Debian and not official packages).
What is probably of more interest to you is the locations that I've put header files in, here's what I'm currently installing:/usr/include/usr/include/linux/usr/include/linux/flask /usr/include/linux/flask/class_to_string.h /usr/include/linux/flask/initial_sid_to_string.h /usr/include/linux/flask/avc.h /usr/include/linux/flask/avc_ss.h /usr/include/linux/flask/av_perm_to_string.h /usr/include/linux/flask/flask.h /usr/include/linux/flask/security.h /usr/include/linux/flask/psid.h /usr/include/linux/flask/common_perm_to_string.h /usr/include/linux/flask/syscalls.h /usr/include/linux/flask/flask_types.h /usr/include/linux/flask/av_permissions.h /usr/include/linux/flask/av_inherit.h/usr/include/selinux/usr/include/selinux/ss.h/usr/include/selinux/lsm.h/usr/include/selinux/ipc_secure.h /usr/include/selinux/proc_secure.h /usr/include/selinux/context.h /usr/include/selinux/get_sid_list.h /usr/include/selinux/fs_secure.h /usr/include/selinux/get_default_type.h /usr/include/selinux/socket_secure.h /usr/include/selinux/flask_util.h /usr/include/selinux/get_user_sid.h
I would like some feedback from the authors of what they think about these locations. I will not put the include files in /usr/local, but I am open to suggestions of other ways of arranging them under /usr/include.
Also it would be conveniant for people who are develping distributions if there was a suggested location for header files that worked with the LSB directory scheme...
Subject: Re: SE Linux packages of login, sshd, tar, stat, findutils, fileutils, and [xkg]dm
Date: Tue, 27 Nov 2001 20:44:23 +0100
From: Russell Coker <[email protected]>
To: Giacomo Catenazzi <[email protected]>, [email protected]
Quoted 5 lines · Giacomo Catenazzi
Quoted 3 lines
PS I hope to have some test packages of SE-Linux enabled utilities on
http://www.coker.com.au/selinux/ within 24 hours, and a complete set of SE-Linux Debian packages (apart from [xkg]dm) within a week.do you need some help?
Yes!
Firstly check out http://www.coker.com.au/selinux/ .
Please test compiling all the source first. First compile the kernel-patch package (it's a build depdendency for libselinux-dev which everything else build-depends on). After installing it build the libselinux-dev and then build the stat package.
Then of course you can't do anything without having a kernel to boot (which is easily done) and a login package to allow you to login (which I haven't packaged yet).
Signature · 9 lines
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/projects.html Projects I am working on http://www.coker.com.au/~russell/ My home page -- You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines · Russell Coker
What is probably of more interest to you is the locations that I've put header files in, here's what I'm currently installing:
/usr/include
Well, this will naturally break the build of all of the userland components of SELinux. Why do you need to change the installation directories from what we use?
Quoted 1 line
/usr/include/linux/flask
This change is probably harmless for building the userland components, since the same #include directives will still work (#include <linux/flask/foo.h>). But what about the <linux/asm-i386/unistd.h> and the <linux/asm-i386/flask/unistd.h> files? These are also needed for building the userland components.
Quoted 1 line
/usr/include/selinux
This change will require changes to the userland components of SELinux, and I'm not planning on making these changes to our distribution unless there is a real justification. What's wrong with /usr/local/selinux/include?
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 8 lines · Stephen Smalley
Quoted 3 lines · Russell Coker
What is probably of more interest to you is the locations that I've put header files in, here's what I'm currently installing:
/usr/includeWell, this will naturally break the build of all of the userland components of SELinux. Why do you need to change the installation directories from what we use?
Because no package is allowed to put files in /usr/local !
Quoted 5 lines
Quoted 1 line
/usr/include/linux/flaskThis change is probably harmless for building the userland components, since the same #include directives will still work (#include <
linux/flask/foo.h>).
That's the plan.
Quoted 3 lines
But what about the <
linux/asm-i386/unistd.h>
and the <linux/asm-i386/flask/unistd.h> files? These are also needed for building the userland components.
I'm not sure which is the best solution for that yet.
Quoted 6 lines
Quoted 1 line
/usr/include/selinuxThis change will require changes to the userland components of SELinux, and I'm not planning on making these changes to our distribution unless there is a real justification. What's wrong with
/usr/local/selinux/include?
It conflicts with the FHS. See section 4.5 and in particular 4.5.1:
This directory should always be empty after first installing a FHS-compliant system. No exceptions to this rule should be made other than the listed directory stubs.
So I could create a /usr/local/selinux directory which is empty if necessary, but I can not put any files in it!
You will have the same issue with getting SE-Linux into any other major distribution. Although Slackware would probably make an exception for it. Also Sun ships Solaris packages containing files in /usr/local so they would probably be happy to do so for their Qube and Raq machines too.
Signature · 9 lines
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/projects.html Projects I am working on http://www.coker.com.au/~russell/ My home page -- You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 1 line · Russell Coker
Because no package is allowed to put files in
/usr/local!
Well, I suppose that this makes sense for packages that are intended to be installed as part of the base Debian system. But won't your SELinux packages be optional components to be installed after a base install? And if so, then is it really forbidden to use /usr/local?
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Stephen Smalley
Quoted 1 line · Russell Coker
Because no package is allowed to put files in
/usr/local!Well, I suppose that this makes sense for packages that are intended to be installed as part of the base Debian system. But won't your SELinux packages be optional components to be installed after a base install? And if so, then is it really forbidden to use
/usr/local?
It's forbidden for any Debian packages to put files there for any reason.
Whether a package is optional or required makes no difference.
Signature · 9 lines
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/projects.html Projects I am working on http://www.coker.com.au/~russell/ My home page -- You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines · Russell Coker
It's forbidden for any Debian packages to put files there for any reason.
Whether a package is optional or required makes no difference.
Well, maybe we can work toward making our /usr/local/selinux hierarchy and the builds for the userland SELinux components more easily relocatable. If you can contribute suggestions and patches to help with this task, that would be useful. Otherwise, I'm not sure when we'll get to it.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.