Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 308015 Details for
Bug 448439
Encrypted /tmp partition gets wrong security context
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Script called by incrontab to fix security context after mounting /tmp
on_mount (text/plain), 1.01 KB, created by
Joachim Katzer
on 2008-06-02 21:45:35 UTC
(
hide
)
Description:
Script called by incrontab to fix security context after mounting /tmp
Filename:
MIME Type:
Creator:
Joachim Katzer
Created:
2008-06-02 21:45:35 UTC
Size:
1.01 KB
patch
obsolete
>#!/bin/bash > >OLD_MTAB=/var/tmp/old-mtab >MTAB_LOCK=/var/tmp/mtab.lock >DEV_CTMP=/dev/mapper/ctmp >START_MSG=${2-"initial mtab"} > >case "$1" in > "start" ) > logger -t "$START_MSG" `cat /etc/mtab` > cat /etc/mtab > $OLD_MTAB > rm -f "$MTAB_LOCK" > ;; > "stop" ) rm -f "$OLD_MTAB" "$MTAB_LOCK" ;; > * ) if [ -f "$MTAB_LOCK" ] ; then > exit 0 > fi > if [ -f "$OLD_MTAB" ] ; then > touch "$MTAB_LOCK" > # Log additional lines in /etc/mtab (new mounts) > ADDED=`diff "$OLD_MTAB" /etc/mtab | grep '>'` > if [ -n "$ADDED" ] ; then > logger -t "mounted" "$ADDED" > fi > # Log removed lines in /etc/mtab (new ummounts) > REMOVED=`diff "$OLD_MTAB" /etc/mtab | grep '<'` > if [ -n "$REMOVED" ] ; then > logger -t "unmounted" "$REMOVED" > fi > # Log security context of /tmp if just mounted > if [[ "$ADDED" =~ "$DEV_CTMP" ]] ; then > logger -t "/tmp context" `ls -alZ /tmp` > /sbin/restorecon -r /tmp > logger -t "after restorecon" `ls -alZ /tmp` > fi > cat /etc/mtab > $OLD_MTAB > fi ;; >esac >rm -f "$MTAB_LOCK"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 448439
: 308015