From: Dale Amon <amon@vnl.com>
To: SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Trivial debian bootscript for selinuxfs on 2.6
Date: Tue, 16 Sep 2003 16:54:39 +0100 [thread overview]
Message-ID: <20030916155439.GN8988@vnl.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 409 bytes --]
In case anyone might find it useful, or if it saves Colin
five minutes on his next release, here is the bootscript
I wrote to handle getting selinuxfs mounted on /.
I was undecided as to whether to actually have the
reload/restart or not, or even whether it made sense
to have a stop that dismounts selinuxfs. I'm agnostic
on it.
It should be linked into rcS.d as S0Selinux -> ../init.d/Selinux
So FWIW...
[-- Attachment #2: 20030916-etc_initd_Selinux --]
[-- Type: text/plain, Size: 695 bytes --]
#! /bin/sh
#
# Selinux Mount the selinux fs.
# Written by Dale Amon <amon@islandone.org>.
#
# Version: @(#)Selinux 1.0.0 15-Sep-2003 amon@vnl.com
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=Selinux
set -e
case "$1" in
start)
echo -n "Mounting selinuxfs"
mount -t selinuxfs none /selinux
echo "."
;;
stop)
echo -n "Unmounting selinuxfs"
umount -t selinuxfs
echo "."
;;
reload|restart|force-reload)
echo -n "Restarting $DESC: $NAME"
umount -t selinuxfs
mount -t selinuxfs none /selinux
echo "."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
next reply other threads:[~2003-09-16 15:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-16 15:54 Dale Amon [this message]
2003-09-16 19:10 ` Trivial debian bootscript for selinuxfs on 2.6 Dale Amon
2003-09-17 10:36 ` Russell Coker
2003-09-17 11:10 ` Dale Amon
2003-09-17 12:15 ` Dale Amon
2003-09-17 12:43 ` Russell Coker
2003-09-17 12:54 ` Dale Amon
2003-09-17 16:56 ` Dale Amon
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=20030916155439.GN8988@vnl.com \
--to=amon@vnl.com \
--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.