public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
From: RB <aoz.syn@gmail.com>
To: gentoo-hardened@lists.gentoo.org
Subject: Re: [gentoo-hardened] change /sbin/rc
Date: Wed, 18 Feb 2009 05:54:37 -0700	[thread overview]
Message-ID: <4255c2570902180454n311635e5r8b247810d58c2e42@mail.gmail.com> (raw)
In-Reply-To: <897813410902180125m3b781cc6ocfb4ffa4d0b2575e@mail.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.



  reply	other threads:[~2009-02-18 12:54 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 [this message]
2009-02-18 14:04   ` Javier J. Martínez Cabezón
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=4255c2570902180454n311635e5r8b247810d58c2e42@mail.gmail.com \
    --to=aoz.syn@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