From: "Javier J. Martínez Cabezón" <tazok.id0@gmail.com>
To: gentoo-hardened@lists.gentoo.org
Subject: Re: [gentoo-hardened] change /sbin/rc
Date: Wed, 18 Feb 2009 15:04:24 +0100 [thread overview]
Message-ID: <897813410902180604s547331bejb6ed6a9d303fa743@mail.gmail.com> (raw)
In-Reply-To: <4255c2570902180454n311635e5r8b247810d58c2e42@mail.gmail.com>
Oh, thanks, I was so blind looking for a way to make it works that I
didn't get realize in the possibility to install an rc alternative.
I have installed rsbac on my own, but I think that the problem of
shell-scripts and capabilities are common to other frameworks as
grsecurity or SELinux. So thanks for your help.
2009/2/18 RB <aoz.syn@gmail.com>:
> On Wed, Feb 18, 2009 at 02:25, Javier J. Martínez Cabezón
> <tazok.id0@gmail.com> wrote:
>> Hi, I think that /sbin/rc should be changed from a shell script, the
>> reason is that with gentoo hardened, security policies could be done
>> removing all linux capabilities to root (and CAP_DAC_OVERRIDE), in my
>> setup syslog-ng is launched as user audit (which has CAP_SYS_ADMIN and
>> CAP_DAC_OVERRIDE as minimun rsbac capabilities), and between others
>> utmp has owner as audit user. Since root has not capabilities this
>> file cannot be touched, and chmod at boot. I can't grant to /sbin/rc a
>> minimum capability CAP_DAC_OVERRIDE because it doesn't work since it's
>> a bash shell-script, and granting it to mv, chmod etc is not a good
>> idea as you can suppose :). Could it be done?
>
> Beyond the fact that rsbac-admin and rsbac-sources have been removed,
> there's no reason you can't do this. In my ~ARCH hardened systems
> with openrc, /sbin/rc is a binary and not a shell script.
>
>
next prev parent reply other threads:[~2009-02-18 14:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-18 9:25 [gentoo-hardened] change /sbin/rc Javier J. Martínez Cabezón
2009-02-18 12:54 ` RB
2009-02-18 14:04 ` Javier J. Martínez Cabezón [this message]
2009-02-18 15:20 ` RB
-- strict thread matches above, loose matches on Subject: below --
2009-02-18 9:33 Javier J. Martínez Cabezón
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=897813410902180604s547331bejb6ed6a9d303fa743@mail.gmail.com \
--to=tazok.id0@gmail.com \
--cc=gentoo-hardened@lists.gentoo.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox