[PATCH] mkfs.ubifs: Add support for symlinks in device table

Richard Weinberger richard at nod.at
Thu May 18 08:43:20 PDT 2017


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?

Thanks,
//richard



More information about the linux-mtd mailing list