Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [patch] open.2: Document fs.protected_fifos and fs.protected_regular
@ 2019-09-29  3:01 Joseph C. Sible
  0 siblings, 0 replies; only message in thread
From: Joseph C. Sible @ 2019-09-29  3:01 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man

The sysctls fs.protected_fifos and fs.protected_regular can cause
open(2) to fail with EACCES (see Documentation/sysctl/fs.txt for
details.)

Signed-off-by: Joseph C. Sible <josephcsible@gmail.com>
---
 man2/open.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/man2/open.2 b/man2/open.2
index b0f485b..9ee42b2 100644
--- a/man2/open.2
+++ b/man2/open.2
@@ -958,6 +958,16 @@ is not allowed.
 (See also
 .BR path_resolution (7).)
 .TP
+.B EACCES
+.\" commit 30aba6656f61ed44cba445a3c0d38b296fa9e8f5
+Where
+.B O_CREAT
+is specified, the fs.protected_fifos or fs.protected_regular sysctl is
+enabled, the file already exists and is a FIFO or regular file, the
+owner of the file is neither the current user nor the owner of the
+containing directory, and the containing directory is both world- or
+group-writable and sticky.
+.TP
 .B EDQUOT
 Where
 .B O_CREAT
--
2.7.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-29  3:01 [patch] open.2: Document fs.protected_fifos and fs.protected_regular Joseph C. Sible

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git