All of lore.kernel.org
 help / color / mirror / Atom feed
* Trivial debian bootscript for selinuxfs on 2.6
@ 2003-09-16 15:54 Dale Amon
  2003-09-16 19:10 ` Dale Amon
  2003-09-17 10:36 ` Russell Coker
  0 siblings, 2 replies; 8+ messages in thread
From: Dale Amon @ 2003-09-16 15:54 UTC (permalink / raw)
  To: SELinux Mail List

[-- 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




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-09-17 16:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-16 15:54 Trivial debian bootscript for selinuxfs on 2.6 Dale Amon
2003-09-16 19:10 ` 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

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.