All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakob Oestergaard <jakob@unthought.net>
To: Stephen Smalley <sds@epoch.ncsc.mil>
Cc: Tom <tom@lemuria.org>, selinux@tycho.nsa.gov
Subject: Re: Do we break POSIX?
Date: Fri, 14 Nov 2003 15:59:37 +0100	[thread overview]
Message-ID: <20031114145937.GA4993@unthought.net> (raw)
In-Reply-To: <1068472925.32532.3.camel@moss-spartans.epoch.ncsc.mil>

On Mon, Nov 10, 2003 at 09:02:05AM -0500, Stephen Smalley wrote:
...
> > 
> > Does anyone know immediately if this is so and if we are indeed
> > breaking POSIX? If nobody can answer that, I will find out myself, as
> > I've promised him to check.
> 
> NFS can yield the same behavior.  If you are holding a file open on the
> client and writing to it, and someone changes the ownership of the file
> on the server, then subsequent write() requests will fail with
> Permission denied.  I just tested with a Linux client and server to
> verify, and this is what happens.

Yep.

But NFS doesn't claim to have POSIX semantics.

I doubt there are any real-world programs that would treat a write
returning -1 with errno set to an 'unknown error', as a successful
write.

(if such a program should exist, the author will be most thoroughly
 dealt with when I take over  ;)

So all in all I think that you are both correct, but the (my) conclusion
is that it wouldn't matter if write returned EACCESS.

 / jakob


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  parent reply	other threads:[~2003-11-14 14:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10 13:37 Do we break POSIX? Tom
2003-11-10 14:02 ` Stephen Smalley
2003-11-10 17:18   ` Richard Troth
2003-11-14 14:59   ` Jakob Oestergaard [this message]
2003-11-10 18:03 ` [selinux] " Magosányi Árpád
2003-11-10 21:32 ` Thorsten Kukuk
2003-11-10 21:52 ` James Morris
  -- strict thread matches above, loose matches on Subject: below --
2003-11-10 18:19 Miner, Jonathan W
     [not found] <Xine.LNX.4.44.0311101653490.5261-100000@thoron.boston.redhat.com>
2003-11-10 23:35 ` James Morris

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=20031114145937.GA4993@unthought.net \
    --to=jakob@unthought.net \
    --cc=sds@epoch.ncsc.mil \
    --cc=selinux@tycho.nsa.gov \
    --cc=tom@lemuria.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.