From: Rogelio Serrano <rogelio@smsglobal.net>
To: russell@coker.com.au
Cc: selinux@tycho.nsa.gov
Subject: Re: booting in enforcing mode
Date: Mon, 12 Apr 2004 15:10:07 +0800 [thread overview]
Message-ID: <f0412392a31bd031317c4713e9d4eeda@debian> (raw)
In-Reply-To: <200404121637.57839.russell@coker.com.au>
On 2004-04-12 14:37:57 +0800 Russell Coker
<russell@coker.com.au> wrote:
> On Sun, 11 Apr 2004 23:35, Rogelio Serrano
> <rogelio@smsglobal.net> wrote:
>>>> I rewrote mount, syslogd, and klogd to have the bare
>>>> minimum priviledges.
>>>
>>> What did you change?
>>
>> Im using an lfs derived distro. it uses uClibc.
>>
>> These are all my own versions of those utilities. useful only
>> from boot scripts. mount is just a wrapper around the mount
>> syscall. and unmount also a wrapper around the unmount
>> syscall.
>> they dont need fstab or /proc/mounts. the original versions
>> are
>> causing too much noise in the logs. i was having lot of
>
> Reading a file of type etc_t is not going to do any great
> harm. Almost
> everything has read access to such files (think of all the
> things that break
> if /etc/passwd is not readable).
>
i see. im considering a config file for remount. thats what i
call the mount replacement now. im very happy with the
replacements actually.
> If I made it a tunable for whether /proc/mounts and /etc/mtab
> are accessible
> would that satisfy your needs? I really want to keep everyone
> on the same
> policy tree as much as possible. That will allow you to
> upgrade to newer
> releases of SE Linux with less effort and also allow me to
> incorporate any
> improvements you make without any difficulty.
>
I think thats a good idea.
I understand.
Im going to download the policy snapshot from your website. I
think its better than the default policy from selinux-usr.
>> im using busybox for most of the network stuff and logging. in
>> enforcing mode i was having a lot of difficulty to run syslogd
>> in the proper context.
>
> You might want to read my previous messages on this topic to
> this list, and
> the paper I presented at OLS 2003 on running SE Linux on an
> iPaQ.
>
>> i was having difficulty with the busybox code so i ripped out
>> the relevant
>> parts and built my own
>> syslogd from that. same for klogd. i then tested these
>> programs
>> and took out some code that caused problems.
>
> My conclusion was that doing such things was best. I think
> that having
> syslogd and klogd running in different domains provides
> minimal benefit and
> for a small machine you might want to combine them (the policy
> supports this
> if you remove klogd.te).
>
Well klogd is reading from /proc kmsg and syslogd from
/dev/log. I will need to keep them separate. The system is
going to be used on both big and small "machines".
This is in flux right now because i am studying runit, minit,
quickinit and upstart. I want to combine the best features of
these init implementations. The logging subsystem is going to
be closely integrated with init. i particularly like quickinit
and the supervision and logging concept of runit...
>> One area im having a lot irritation with is the hotplug
>> scripts. everytime they run bash opens /proc/kmem /dev/random
>> /dev/pts /dev/ptmx and countless other devices and files that
>> is not even mentioned anywhere in the relevant sources. now i
>> dont know which to allow and which to deny. so now im going to
>> write small prgrams to replace the scripts.
>
> Shell scripts always require access to more things than they
> should. One
> thing you might investigate is using a smaller shell than
> bash. Shells with
> less features request less access to the system...
>
im going to do that. im going to try minix shell, ash and pdksh.
--
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.
next prev parent reply other threads:[~2004-04-12 7:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-10 7:10 booting in enforcing mode Rogelio Serrano
2004-04-10 14:22 ` Russell Coker
2004-04-10 14:53 ` Rogelio Serrano
2004-04-10 17:28 ` Rogelio Serrano
2004-04-11 10:23 ` Russell Coker
2004-04-11 13:35 ` Rogelio Serrano
2004-04-12 6:37 ` Russell Coker
2004-04-12 7:10 ` Rogelio Serrano [this message]
2004-04-12 10:29 ` Russell Coker
2004-04-11 10:23 ` Russell Coker
2004-04-11 13:41 ` Rogelio Serrano
2004-04-11 14:41 ` Rogelio Serrano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f0412392a31bd031317c4713e9d4eeda@debian \
--to=rogelio@smsglobal.net \
--cc=russell@coker.com.au \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.