fixfiles
Fix file SELinux security contexts. More information: https://manned.org/fixfiles.
- Record the current date in the
/.autorelabelfile when used withonboot(to speed up labeling later), or only restore files modified today when used withrestore:
fixfiles -B
- [F]orce reset of context to match
file_contextfor customizable files:
fixfiles -F
- Clear
/tmpdirectory without confirmation:
fixfiles -f
- Use the [R]pm database to discover all files within specific packages and restore the file contexts:
fixfiles -R
- Run a diff on the
PREVIOUS_FILECONTEXTfile to the [C]urrently installed one, and restore the context of all affected files:
fixfiles -C PREVIOUS_FILECONTEXT
- Only act on files created after a specific date which will be passed to find
--newermtcommand:
fixfiles -N
- Bind [M]ount filesystems before relabeling them, this allows fixing the context of files or directories that have been mounted over:
fixfiles -M
- Modify [v]erbosity from progress to verbose and run
restoreconwith-vinstead of-p:
fixfiles -v
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
