mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ian Hastie <ianh@iahastie.clara.net>
To: Andries Brouwer <aebr@win.tue.nl>
Cc: linux-kernel@vger.kernel.org, bill davidsen <davidsen@tmr.com>
Subject: Re: suid bit behaviour modification in 2.6.0-test5
Date: Mon, 29 Sep 2003 04:05:03 +0100	[thread overview]
Message-ID: <200309290405.05669.ianh@iahastie.local.net> (raw)
In-Reply-To: <200309262341.32000.ianh@iahastie.local.net>

On Friday 26 Sep 2003 23:41, Ian Hastie wrote:
> Just did a slightly different test and got this from it...
>
> $ uname -a
> Linux iahastie 2.6.0-test5-bk13-athlon #1 Fri Sep 26 19:26:30 BST 2003 i686
> GNU/Linux
> $ touch suid_test
> $ ls -l
> total 0
> -rw-r--r--    1 ianh     ianh            0 Sep 26 23:16 suid_test
>
> # chown root suid_test
> # chmod 4775 suid_test
>
> $ ls -l
> total 0
> -rwsrwxr-x    1 root     ianh            0 Sep 26 23:16 suid_test
> $ cp /usr/bin/id suid_test
> $ ls -l
> total 16
> -rwsrwxr-x    1 root     ianh        13880 Sep 26 23:16 suid_test
> $ ./suid_test
> uid=1000(ianh) gid=1000(ianh) euid=0(root) groups=1000(ianh), ...
>
> Note it *does* come up as euid root.
>
> $ sync
> $ ls -l
> total 16
> -rwxrwxr-x    1 root     ianh        13880 Sep 26 23:16 suid_test
> $ ./suid_test
> uid=1000(ianh) gid=1000(ianh) groups=1000(ianh), ...
>
> But not after it has been synced.  Odd, but that's how it works.

Just tried it again with 2.6.0-test6.  Same initial results, but the suid bit 
didn't clear directly after a sync, so that's probably just a coincidence.  
Can't say for sure that there isn't some other change though.  The only 
certain thing here is that your suid bit fix doesn't work, at least not with 
XFS.

-- 
Ian.


      reply	other threads:[~2003-09-29  3:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-21  0:45 Jean-pierre Cartal
2003-09-22  3:25 ` Ian Hastie
2003-09-23 17:12   ` bill davidsen
2003-09-23 17:54     ` Andries Brouwer
2003-09-26 22:41       ` Ian Hastie
2003-09-29  3:05         ` Ian Hastie [this message]

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=200309290405.05669.ianh@iahastie.local.net \
    --to=ianh@iahastie.clara.net \
    --cc=aebr@win.tue.nl \
    --cc=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®