All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: David Engraf <david.engraf@sysgo.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	David Oberhollenzer <goliath@sigma-star.at>
Subject: Re: [PATCH] mkfs.ubifs: Add support for symlinks in device table
Date: Thu, 18 May 2017 17:43:20 +0200	[thread overview]
Message-ID: <9e19f6f3-e825-72b4-cf5e-fea2c12a5c7e@nod.at> (raw)
In-Reply-To: <97e661e2-0648-e148-280b-8ff6cc9cbe09@nod.at>

Am 18.05.2017 um 17:27 schrieb Richard Weinberger:
> i.e.
> rw@captainhero:/mnt/dir> id
> uid=1000(rw) gid=100(users) groups=100(users)
> rw@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@captainhero:/mnt/dir> rm s
> rw@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@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

  reply	other threads:[~2017-05-18 15:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 13:38 [PATCH] mkfs.ubifs: Add support for symlinks in device table David Engraf
2017-05-18 14:33 ` Richard Weinberger
2017-05-18 14:38   ` David Engraf
2017-05-18 14:47     ` Richard Weinberger
2017-05-18 15:03       ` David Engraf
2017-05-18 15:08         ` Richard Weinberger
2017-05-18 15:16           ` David Engraf
2017-05-18 15:27             ` Richard Weinberger
2017-05-18 15:43               ` Richard Weinberger [this message]
2017-05-19  6:13                 ` David Engraf
2017-05-19  8:24                   ` Richard Weinberger
2017-05-19  8:47                     ` David Engraf
2017-05-21 21:46                       ` Richard Weinberger
2017-05-23  6:52 ` [PATCH v2] " David Engraf
2017-05-31  9:04   ` David Oberhollenzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9e19f6f3-e825-72b4-cf5e-fea2c12a5c7e@nod.at \
    --to=richard@nod.at \
    --cc=david.engraf@sysgo.com \
    --cc=goliath@sigma-star.at \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.