[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 01/14: Fix privileged operations on trivfs-translated nodes
From: |
Samuel Thibault |
Subject: |
[hurd] 01/14: Fix privileged operations on trivfs-translated nodes |
Date: |
Sun, 22 May 2016 01:15:21 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 45b829f4dcb28a98af7285dc57bfaf621b0bbf21
Author: Justus Winter <address@hidden>
Date: Fri Apr 29 23:36:47 2016 +0200
Fix privileged operations on trivfs-translated nodes
Amends d18ea50e.
* libtrivfs/fsys-getroot.c: When the user is privileged, make a
verbatim copy of the real node instead of making an auth-restricted
copy.
---
libtrivfs/fsys-getroot.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c
index c44e535..c9b8261 100644
--- a/libtrivfs/fsys-getroot.c
+++ b/libtrivfs/fsys-getroot.c
@@ -75,11 +75,11 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl,
.alloced = nuids,
};
- if (idvec_contains (&idvec, 0))
- /* Root should be given all our rights. */
+ if (_is_privileged (&idvec))
+ /* Privileged users should be given all our rights. */
err = io_duplicate (cntl->underlying, &new_realnode);
else
- /* Non-root, restrict rights. */
+ /* Non-privileged, restrict rights. */
err = io_restrict_auth (cntl->underlying,
&new_realnode, uids, nuids, gids, ngids);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (b90164e -> 04cfa52), Samuel Thibault, 2016/05/21
- [hurd] 01/14: Fix privileged operations on trivfs-translated nodes,
Samuel Thibault <=
- [hurd] 04/14: startup: fix blunder, Samuel Thibault, 2016/05/21
- [hurd] 06/14: GNU Hurd 0.8, Samuel Thibault, 2016/05/21
- [hurd] 05/14: Complete changes to use -L instead of -Wl, -rpath-link, Samuel Thibault, 2016/05/21
- [hurd] 07/14: mach-defpager: fix panic invocation, Samuel Thibault, 2016/05/21
- [hurd] 02/14: libihash: fix corner case, Samuel Thibault, 2016/05/21
- [hurd] 12/14: libnetfs: treat disconnected shadow roots as virtual roots, Samuel Thibault, 2016/05/21
- [hurd] 14/14: Avoid superfluous locking of node, Samuel Thibault, 2016/05/21
- [hurd] 10/14: libdiskfs: cosmetic changes, Samuel Thibault, 2016/05/21
- [hurd] 09/14: libnetfs: rename 'diruser' to 'dircred', Samuel Thibault, 2016/05/21
- [hurd] 08/14: libnetfs: rename 'error' to 'err', Samuel Thibault, 2016/05/21