FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    216
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    FC11 - whats the new trailing dot in the perms field from ls -la

    Anyone know what the extra . (dot) in the permissions field is in the output of ls -la in FC11 ?
    A permissions field is normally 10 bytes, whats with the dot, a man an info on ls caused nothing obvious to jump out at me.

    A eleven byte perm field now with a trailing dot insead of the normal ten byte field
    [root@osprey mark]# uname -a
    Linux osprey 2.6.29.5-191.fc11.i686.PAE #1 SMP Tue Jun 16 23:19:53 EDT 2009 i686 i686 i386 GNU/Linux
    [root@osprey mark]# ls -la /
    total 110
    drwxr-xr-x. 23 root root 4096 2009-07-17 20:56 .
    drwxr-xr-x. 23 root root 4096 2009-07-17 20:56 ..
    -rw-r--r--. 1 root root 0 2009-07-17 20:56 .autofsck
    drwxr-xr-x. 2 root root 4096 2009-07-04 03:30 bin
    drwxr-xr-x. 5 root root 1024 2009-07-02 15:27 boot
    drwxr-xr-x. 3 root root 4096 2009-06-21 11:19 databases
    drwxr-xr-x. 17 root root 3900 2009-07-19 03:24 dev
    drwxr-xr-x. 124 root root 12288 2009-07-19 10:52 etc

    That extra dot doesn't exist in FC10 or earlier (or solaris, or aix, or ...)
    [mark@falcon asm370]$ uname -a
    Linux falcon 2.6.27.21-170.2.56.fc10.i686 #1 SMP Mon Mar 23 23:37:54 EDT 2009 i686 i686 i386 GNU/Linux
    [mark@falcon asm370]$ ls -la /
    total 122
    drwxr-xr-x 22 root root 4096 2009-07-17 17:32 .
    drwxr-xr-x 22 root root 4096 2009-07-17 17:32 ..
    -rw-r--r-- 1 root root 0 2009-07-17 17:32 .autofsck
    drwxr-xr-x 2 root root 4096 2009-05-25 04:42 bin
    drwxr-xr-x 5 root root 1024 2009-04-19 12:12 boot
    drwx------ 3 root root 4096 2008-12-28 07:40 .dbus
    drwxr-xr-x 15 root root 4800 2009-07-19 04:30 dev
    drwxr-xr-x 134 root root 12288 2009-07-18 04:33 etc

    It broke the version of WinSCP I was using... I was on winscp version 3.6.7 which couldn't handle the extra dot, but an upgrade to the latest version 4.2.2 beta handles it ok.

    Just wondering what the extra dot was for, if winscp was updated to handle it I assume it's not going away (even if other *nix flavours like aix and solaris don't have it).

    My first thought was it was an ext4 thing, but the ext3 boot slice has the trailing dot as well.

    I did check the man page and "info coreutils 'ls invocation'" as suggested by the man page, but there was no dot in the examples from the ls command there either.

    So out of curiosity, whats it for (apart from also breaking lots of my scripts, which quite honestly I can do on my own without strange changes like this)

    If it is supposed to be there can I actually use it to tell me anything ?

  2. #2
    Join Date
    Sep 2006
    Location
    Connellsville, PA, USA
    Posts
    11,306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.gnu.org/software/coreutil...ls-invocation:
    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.
    V

  3. #3
    Join Date
    Jan 2009
    Location
    New Zealand
    Posts
    216
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Thank you.
    Its a useless byte then, selinux has been around for a long time and I always found ls -laZ showed the selinux context quite nicely ever since selinux became standard with fedora.

    I was't aware you could have a file in any of the later fedora releases that did not have a selinux context; so I still don't know why a dot was needed as everone knows the files in fedora releases are using selinux contexts.

    The dot only appeared in FC11. I assume that FC11 is finally correctly implementing some rfc/iso/other standard that no other vendor has caught up with yet (quote from somewhere I cant remember:the only good thingabout standards are that there are so many of them).

    Now if it could be usefull for something that would be a bonus.
    I assume as GNU uses . for selinux as time goes by other vendors may use other characters for their products; but no, in one byte they can't register all those vendors...
    So the dot must indicate any non-native *nix security product.

    So one question from the origional post is still outstanding.
    What can anybody use the dot for; to indicate a security tool is running ?, we FCx users know selinix is there and don't need a dot.
    In a script (or any other method) can a query be made on the dot to determine what security product a file is managed under ?. If it is not there to handle multiple registered security products but only to say selinux is managing the file it's a bit of a waste of space.

  4. #4
    Join Date
    May 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: FC11 - whats the new trailing dot in the perms field from ls -la

    It's not a useless byte nor a waste of space. Its main purpose is to mark that an alternate access method is present for that file/directory. ACL are, for example, an alternate access method and the byte is +, if selinux is in control than the byte is . and so on. It's about alternate access control, not security products. It makes a lot of sense and all new Linuxes are implementing it.

Similar Threads

  1. Replies: 0
    Last Post: 14th August 2009, 06:49 AM
  2. Replies: 1
    Last Post: 23rd December 2006, 11:23 PM
  3. graphics problem - trailing windows
    By gforces in forum Using Fedora
    Replies: 7
    Last Post: 9th May 2006, 01:50 AM
  4. trailing slashes and broken pipe ??
    By lerningkurv in forum Servers & Networking
    Replies: 8
    Last Post: 11th November 2005, 04:12 AM
  5. setfont : trailing garbage
    By timburton in forum Fedora Core 4 Test
    Replies: 0
    Last Post: 29th March 2005, 11:13 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •