Answers:
根据ls.c
(第3785行),.
表示SELinux ACL。(+
表示一般的ACL。)
我有同样的问题。我花了一段时间才找到了它,已经浏览了“ man ls”页面一百次(嗯,也许不是那么频繁),直到我终于在SEE ALSO部分中看到了有关使用命令的注释:
info coreutils 'ls invocation'
在描述“ -l”(-format = long)的部分中:
Following the file mode bits is a single character that specifies
whether an alternate access method such as an access control list
applies to the file. When the character following the file mode
bits is a space, there is no alternate access method. When it is
a printing character, then there is such a method.
GNU `ls' uses a `.' character to indicate a file with an SELinux
security context, but no other alternate access method.
A file with any other combination of alternate access methods is
marked with a `+' character.
这意味着该文件具有SELinux的访问权限列表。查看本主题,它告诉您如何允许您编辑/更改文件http://ubuntuforums.org/showthread.php?t=1315684
这是SELinux上下文。尝试ls -Z /your/file
引用我的 man ls
SELinux options: --lcontext Display security context. Enable -l. Lines will probably be too wide for most displays. -Z, --context Display security context so it fits on most displays. Displays only mode, user, group, security context and file name. --scontext Display only security context and file name.
要更改此设置,请尝试以下命令之一:chcon
或semanage fcontext
或restorecon
相当整洁的解释在这里:https : //access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-SELinux_Contexts_Labeling_Files.html