[PATCH] mkfs.ubifs: Add support for symlinks in device table
David Engraf
david.engraf at sysgo.com
Thu May 18 23:13:03 PDT 2017
Hi Richard,
Am 18.05.2017 um 17:43 schrieb Richard Weinberger:
> Am 18.05.2017 um 17:27 schrieb Richard Weinberger:
>> i.e.
>> rw at captainhero:/mnt/dir> id
>> uid=1000(rw) gid=100(users) groups=100(users)
>> rw at captainhero:/mnt/dir> ls -la
>> total 0
>> drwxr-xr-x 2 rw root 240 May 18 17:23 .
>> drwxr-xr-x 3 root root 224 May 18 17:22 ..
>> lrwxrwxrwx 1 root root 11 May 18 17:23 s -> /etc/shadow
>> rw at captainhero:/mnt/dir> rm s
>> rw at captainhero:/mnt/dir> ls -la
>> total 0
>> drwxr-xr-x 2 rw root 176 May 18 17:24 .
>> drwxr-xr-x 3 root root 224 May 18 17:22 ..
>> rw at captainhero:/mnt/dir>
>>
>> Although, user rw is not root, it can delete "s" which is owned by root
>> because rw has write permission on /mnt/dir.
>
> BTW: My example is misleading. Same applies to regular files.
> Permissions and ownership of symlinks just don't apply.
>
> Do you only care about the ls output or does one of your applications
> depend on it?
It's mainly the output of ls because I'm using a verify script checking
ownership of each file. Without having the ability to set the ownership
of symlinks it will fail because ls returns a uid/gid of my host
development system which is not valid on the target.
Best regards
- David
More information about the linux-mtd
mailing list