7

What does the last dot in the file permission attribute mean?

me@ubuntu:~$ ls -l
total 8
drwxr-xr-x   4 me me      4096 Dec 21 13:14 snap
drwxr-xr-x. 14 me docker  4096 Dec 21 15:50 work
          ^
          |--------- what does this dot means?

This is shown by Ubuntu 18.04 LTS on a 9p mounted partition.

Linux ubuntu 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Mount:

/home/me/work on /home/me/work type 9p (rw,relatime,sync,dirsync,access=client,trans=virtio)

I never saw this dot before and don't see any documentation explaining it.

2 Answers2

6

. means an SELinux ACL. (+ means a general ACL.)

Source, more info: What does the dot mean at the end of -rw-r--r--? How do you set it with chmod? on Super User

wjandrea
  • 14,236
  • 4
  • 48
  • 98
4

From info coreutils 'ls invocation' under Linux

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.

Reference: The Meaning of the Dot - Stack Overflow

wjandrea
  • 14,236
  • 4
  • 48
  • 98
Kulfy
  • 17,696