Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 618706 Details for
Bug 599706
sys-apps/sandbox: fchown()/fchmod() can modify fd even when opened O_RDONLY
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0003-tests-add-more-tests-to-make-sure-fchown-fchmod-are-.patch
0003-tests-add-more-tests-to-make-sure-fchown-fchmod-are-.patch (text/plain), 1.62 KB, created by
Michael Orlitzky
on 2020-03-14 02:08:18 UTC
(
hide
)
Description:
0003-tests-add-more-tests-to-make-sure-fchown-fchmod-are-.patch
Filename:
MIME Type:
Creator:
Michael Orlitzky
Created:
2020-03-14 02:08:18 UTC
Size:
1.62 KB
patch
obsolete
>From daa0bb8b324ad4c16de8c870e30e0792d9da0b8e Mon Sep 17 00:00:00 2001 >From: Michael Orlitzky <mjo@gentoo.org> >Date: Sat, 27 Jan 2018 22:38:26 -0500 >Subject: [PATCH 3/3] tests: add more tests to make sure fchown/fchmod are > handled correctly. > >Closes: https://bugs.gentoo.org/599706 >Signed-off-by: Michael Orlitzky <mjo@gentoo.org> >--- > tests/fchmod-2.sh | 11 +++++++++++ > tests/fchmod.at | 1 + > tests/fchown-2.sh | 11 +++++++++++ > tests/fchown.at | 1 + > 4 files changed, 24 insertions(+) > create mode 100755 tests/fchmod-2.sh > create mode 100755 tests/fchown-2.sh > >diff --git a/tests/fchmod-2.sh b/tests/fchmod-2.sh >new file mode 100755 >index 0000000..96d7cc9 >--- /dev/null >+++ b/tests/fchmod-2.sh >@@ -0,0 +1,11 @@ >+#!/bin/sh >+# >+# Ensure that fchmod() doesn't trigger spurious violations in the most >+# basic of cases. >+# >+addwrite $PWD >+ >+# This should not trigger a violation. >+rm -f file >+touch file >+fchmod-0 0644 file || exit 1 >diff --git a/tests/fchmod.at b/tests/fchmod.at >index 081d7d2..d364b4b 100644 >--- a/tests/fchmod.at >+++ b/tests/fchmod.at >@@ -1 +1,2 @@ > SB_CHECK(1) >+SB_CHECK(2) >diff --git a/tests/fchown-2.sh b/tests/fchown-2.sh >new file mode 100755 >index 0000000..dedfbe4 >--- /dev/null >+++ b/tests/fchown-2.sh >@@ -0,0 +1,11 @@ >+#!/bin/sh >+# >+# Ensure that fchown() doesn't trigger spurious violations in the most >+# basic of cases. >+# >+addwrite $PWD >+ >+# This should not trigger a violation. >+rm -f file >+touch file >+fchown-0 ${SB_UID} ${SB_GID} file || exit 1 >diff --git a/tests/fchown.at b/tests/fchown.at >index 081d7d2..d364b4b 100644 >--- a/tests/fchown.at >+++ b/tests/fchown.at >@@ -1 +1,2 @@ > SB_CHECK(1) >+SB_CHECK(2) >-- >2.24.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 599706
:
453296
|
516938
|
516940
|
516944
|
618702
|
618704
|
618706
|
864316
|
864317