summaryrefslogtreecommitdiff
path: root/debian/init
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2013-07-14 22:55:18 +0200
committerAxel Beckert <abe@deuxchevaux.org>2013-07-14 23:34:19 +0200
commit2c6b54474c6465dd0fee1a0d5995a643a3d2ce9d (patch)
treed4d8a87af76086852d67c1cf0cd0c223b9057291 /debian/init
parentb544c22c499b9b92ad9d1b6c2a78aafa73c6caeb (diff)
downloadscreen-2c6b54474c6465dd0fee1a0d5995a643a3d2ce9d.tar.gz
screen-cleanup init.d script: Label /var/run/screen for SE Linux
Closes: #680360
Diffstat (limited to 'debian/init')
-rw-r--r--debian/init1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/init b/debian/init
index 6a94fb4..19c5511 100644
--- a/debian/init
+++ b/debian/init
@@ -27,6 +27,7 @@ start)
rm -f $SCREENDIR
mkdir $SCREENDIR
chown root:utmp $SCREENDIR
+ [ -x /sbin/restorecon ] && /sbin/restorecon $SCREENDIR
fi
find $SCREENDIR -type p -delete
# If the local admin has used dpkg-statoverride to install the screen