SE Linux on Familiar
I have reached a major milestone in my SE Linux on Familiar work. I now have an iPaQ booting in enforcing mode and allowing logins over the serial port (both terminal logins and ppp sessions).
All the difficult work is done.
I have developed two solutions to the busybox wrapper problem (I have yet to determine which is best or whether there is a place for both of them).
Currently the sshd and xdm programs I am using are not patched (so I login to the iPaQ via ssh as system_u:system_r:sysadm_t). Patching ssh will be easy, I have a lot of practise at this. Patching the xdm program should not be any more difficult than patching kdm (painful, nasty and messy - but not technically challenging).
Currently the xdm program is not functional. It does some undesirable things (such as wanting read-write access to /root), so I will need some policy changes and maybe some code changes to get it going. But it's a lot easier to get this going now that I have the basic functionality in place.
All of the things that could cause the iPaQ to become unbootable if I made a mistake (requiring that I spend an hour reloading all the software) are done. I have developed basic installation proceedures for this as well.
Some of the code and policy that I have written is rather ugly and needs to be cleaned up, that shouldn't be really difficult. Tomorrow I will post some policy patches that are related to my iPaQ work.
I anticipate that I will have an iPaQ that's running SE Linux in enforcing mode that is ready for non-development use within a week.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages 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/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 2 lines · Russell Coker
I anticipate that I will have an iPaQ that's running SE Linux in enforcing mode that is ready for non-development use within a week.
Are you working with gpe or qtopia (or neither) ?
Signature · 8 lines
http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines · Tom
Quoted 2 lines · Russell Coker
I anticipate that I will have an iPaQ that's running SE Linux in enforcing mode that is ready for non-development use within a week.
Are you working with gpe or qtopia (or neither) ?
I am using gpe. I don't think it would take much work to get qtopia working.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages 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/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
With memory so tight on a device like that,
how much did this increase the size of the system? (abs and rel)
-- RMT
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 2 lines · Richard Troth
With memory so tight on a device like that,
how much did this increase the size of the system? (abs and rel)
I haven't done a detailed comparison yet.
The kernel binary increases by about 70K in size when compiled for X-scale (other ARM sub-architectures may differ slightly). I have to check the output of "free" to see who much kernel memory is apparently used for the code when it's uncompressed. As for kernel data I am guessing that it will be some small multiple of the size of the uncompressed policydb, but I have to look into that, it's slightly more difficult to measure, but the output of free should again give a good approximation.
Then there's the wrapper programs which take between 6K and 33K of disk space, which is not much when compared to the various utility programs that are necessary (load_policy, setfiles, chsid, etc). I plan to add all of them to busybox and expect that I can not take more than an extra 30K-40K of disk space for it. The compressed policydb is about 86K at the moment, it will reach 90K soon (but I will try to trim it down a bit). The file_contexts file is about 24K, I am not sure whether it's worth trying too hard to reduce the size of this as it's less than 5K when compressed.
NB all disk space figures refer to uncompressed file size. I believe that jffs2 compresses all files using the same algorithm as gzip so increasing a file by 20K does not necessarily mean that 20/32768 of your storage space is used.
For a modern iPaQ the space used by SE Linux is trivial. When I'm finished anything that can usably run Linux should be able to run SE Linux without any problems.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages 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/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.