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 301469 Details for
Bug 441198
SELinux denial for new formatted USB drive.
[?]
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.
autofs_stuff as per request.
autofs_stuff (text/plain), 6.87 KB, created by
Caius Chance
on 2008-04-07 06:53:42 UTC
(
hide
)
Description:
autofs_stuff as per request.
Filename:
MIME Type:
Creator:
Caius Chance
Created:
2008-04-07 06:53:42 UTC
Size:
6.87 KB
patch
obsolete
># ># Sample auto.master file ># This is an automounter map and it has the following format ># key [ -mount-options-separated-by-comma ] location ># For details of the format look at autofs(5). ># >/misc /etc/auto.misc ># ># NOTE: mounts done from a hosts map will be mounted with the ># "nosuid" and "nodev" options unless the "suid" and "dev" ># options are explicitly given. ># >/net -hosts ># ># Include central master map if it can be found using ># nsswitch sources. ># ># Note that if there are entries for /net or /misc (as ># above) in the included master map any keys that are the ># same will not be seen as the first read key seen takes ># precedence. ># >+auto.master ># ># This is an automounter map and it has the following format ># key [ -mount-options-separated-by-comma ] location ># Details may be found in the autofs(5) manpage > >cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom > ># the following entries are samples to pique your imagination >#linux -ro,soft,intr ftp.example.org:/pub/linux >#boot -fstype=ext2 :/dev/hda1 >#floppy -fstype=auto :/dev/fd0 >#floppy -fstype=ext2 :/dev/fd0 >#e2floppy -fstype=ext2 :/dev/fd0 >#jaz -fstype=ext2 :/dev/sdc1 >#removable -fstype=ext2 :/dev/hdd >#!/bin/bash > ># This file must be executable to work! chmod 755! > ># Look at what a host is exporting to determine what we can mount. ># This is very simple, but it appears to work surprisingly well > >key="$1" > ># add "nosymlink" here if you want to suppress symlinking local filesystems ># add "nonstrict" to make it OK for some filesystems to not mount >opts="-fstype=nfs,hard,intr,nodev,nosuid" > ># Showmount comes in a number of names and varieties. "showmount" is ># typically an older version which accepts the '--no-headers' flag ># but ignores it. "kshowmount" is the newer version installed with knfsd, ># which both accepts and acts on the '--no-headers' flag. >#SHOWMOUNT="kshowmount --no-headers -e $key" >#SHOWMOUNT="showmount -e $key | tail -n +2" > >for P in /bin /sbin /usr/bin /usr/sbin >do > for M in showmount kshowmount > do > if [ -x $P/$M ] > then > SMNT=$P/$M > break > fi > done >done > >[ -x $SMNT ] || exit 1 > ># Newer distributions get this right >SHOWMOUNT="$SMNT --no-headers -e $key" > >$SHOWMOUNT | LC_ALL=C sort -k 1 | \ > awk -v key="$key" -v opts="$opts" -- ' > BEGIN { ORS=""; first=1 } > { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 } > END { if (!first) print "\n"; else exit 1 } > ' | sed 's/#/\\#/g' >#!/bin/bash > ># This file must be executable to work! chmod 755! > >key="$1" >opts="-fstype=cifs" > >for P in /bin /sbin /usr/bin /usr/sbin >do > if [ -x $P/smbclient ] > then > SMBCLIENT=$P/smbclient > break > fi >done > >[ -x $SMBCLIENT ] || exit 1 > >$SMBCLIENT -gNL $key 2>/dev/null| awk -v key="$key" -v opts="$opts" -F'|' -- ' > BEGIN { ORS=""; first=1 } > /Disk/ { > if (first) > print opts; first=0 > dir = $2 > loc = $2 > # Enclose mount dir and location in quotes > # Double quote "$" in location as it is special > gsub(/\$$/, "\\$", loc); > print " \\\n\t \"/" dir "\"", "\"://" key "/" loc "\"" > } > END { if (!first) print "\n"; else exit 1 } > ' > ># ># /etc/nsswitch.conf ># ># An example Name Service Switch config file. This file should be ># sorted with the most-used services at the beginning. ># ># The entry '[NOTFOUND=return]' means that the search for an ># entry should stop if the search in the previous entry turned ># up nothing. Note that if the search failed due to some other reason ># (like no NIS server responding) then the search continues with the ># next entry. ># ># Legal entries are: ># ># nisplus or nis+ Use NIS+ (NIS version 3) ># nis or yp Use NIS (NIS version 2), also called YP ># dns Use DNS (Domain Name Service) ># files Use the local files ># db Use the local database (.db) files ># compat Use NIS on compat mode ># hesiod Use Hesiod for user lookups ># [NOTFOUND=return] Stop searching if not found so far ># > ># To use db, put the "db" in front of "files" for entries you want to be ># looked up first in the databases ># ># Example: >#passwd: db files nisplus nis >#shadow: db files nisplus nis >#group: db files nisplus nis > >passwd: files >shadow: files >group: files > >#hosts: db files nisplus nis dns >hosts: files dns > ># Example - obey only what nisplus tells us... >#services: nisplus [NOTFOUND=return] files >#networks: nisplus [NOTFOUND=return] files >#protocols: nisplus [NOTFOUND=return] files >#rpc: nisplus [NOTFOUND=return] files >#ethers: nisplus [NOTFOUND=return] files >#netmasks: nisplus [NOTFOUND=return] files > >bootparams: nisplus [NOTFOUND=return] files > >ethers: files >netmasks: files >networks: files >protocols: files >rpc: files >services: files > >netgroup: nisplus > >publickey: nisplus > >automount: files nisplus >aliases: files nisplus > ># ># Define default options for autofs. ># ># MASTER_MAP_NAME - default map name for the master map. ># >#MASTER_MAP_NAME="auto.master" ># ># TIMEOUT - set the default mount timeout (default 600). ># >TIMEOUT=300 ># ># NEGATIVE_TIMEOUT - set the default negative timeout for ># failed mount attempts (default 60). ># >#NEGATIVE_TIMEOUT=60 ># ># BROWSE_MODE - maps are browsable by default. ># >BROWSE_MODE="no" ># ># APPEND_OPTIONS - append to global options instead of replace. ># >#APPEND_OPTIONS="yes" ># ># LOGGING - set default log level "none", "verbose" or "debug" ># >#LOGGING="none" ># ># Define base dn for map dn lookup. ># ># Define server URIs ># ># LDAP_URI - space seperated list of server uris of the form ># <proto>://<server>[/] where <proto> can be ldap ># or ldaps. The option can be given multiple times. ># Map entries that include a server name override ># this option. ># >#LDAP_URI="" ># ># LDAP__TIMEOUT - timeout value for the synchronous API calls ># (default is LDAP library default). ># >#LDAP_TIMEOUT=-1 ># ># LDAP_NETWORK_TIMEOUT - set the network response timeout (default 8). ># >#LDAP_NETWORK_TIMEOUT=8 ># ># SEARCH_BASE - base dn to use for searching for map search dn. ># Multiple entries can be given and they are checked ># in the order they occur here. ># >#SEARCH_BASE="" ># ># Define the LDAP schema to used for lookups ># ># If no schema is set autofs will check each of the schemas ># below in the order given to try and locate an appropriate ># basdn for lookups. If you want to minimize the number of ># queries to the server set the values here. ># >#MAP_OBJECT_CLASS="nisMap" >#ENTRY_OBJECT_CLASS="nisObject" >#MAP_ATTRIBUTE="nisMapName" >#ENTRY_ATTRIBUTE="cn" >#VALUE_ATTRIBUTE="nisMapEntry" ># ># Other common LDAP nameing ># >#MAP_OBJECT_CLASS="automountMap" >#ENTRY_OBJECT_CLASS="automount" >#MAP_ATTRIBUTE="ou" >#ENTRY_ATTRIBUTE="cn" >#VALUE_ATTRIBUTE="automountInformation" ># >#MAP_OBJECT_CLASS="automountMap" >#ENTRY_OBJECT_CLASS="automount" >#MAP_ATTRIBUTE="automountMapName" >#ENTRY_ATTRIBUTE="automountKey" >#VALUE_ATTRIBUTE="automountInformation" ># ># AUTH_CONF_FILE - set the default location for the SASL ># authentication configuration file. ># >#AUTH_CONF_FILE="/etc/autofs_ldap_auth.conf" ># ># General global options ># >#OPTIONS="" >#
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 441198
: 301469 |
302257