All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thorsten Kukuk <kukuk@suse.de>
To: selinux@tycho.nsa.gov
Subject: Re: Do we break POSIX?
Date: Mon, 10 Nov 2003 22:32:07 +0100	[thread overview]
Message-ID: <20031110213207.GA23280@suse.de> (raw)
In-Reply-To: <20031110143701.S16119@lemuria.org>

On Mon, Nov 10, Tom wrote:

> One point brought up by Theo DeRaadt during PacSec was that according
> to POSIX, write operations can not return a permission denied error.
> 
> I could not argue with him on that because I have not actually read the
> POSIX standard, but he has a valid point in that breaking standards
> would be a big no.
> 
> 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.

The write( ) function may fail if:
[EACCES]            A write was attempted on a socket and the calling
                    process does not have appropriate privileges.

POSIX says nothing about files, but for sockets, EACCES is a valid
error code.

  Thorsten

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B

--
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-10 21:32 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
2003-11-10 18:03 ` [selinux] " Magosányi Árpád
2003-11-10 21:32 ` Thorsten Kukuk [this message]
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=20031110213207.GA23280@suse.de \
    --to=kukuk@suse.de \
    --cc=selinux@tycho.nsa.gov \
    /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.