summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trans/fakeroot.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index c4b95de1..4175b552 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -479,6 +479,16 @@ netfs_validate_stat (struct node *np, struct iouser *cred)
return 0;
}
+/* Various netfs functions will call fshelp_isowner to check whether
+ USER is allowed to do some operation. As fakeroot is not running
+ within the fakeauth'ed environment, USER contains the real
+ user. Hence, we override this check. */
+error_t
+fshelp_isowner (struct stat *st, struct iouser *user)
+{
+ return 0;
+}
+
error_t
netfs_attempt_chown (struct iouser *cred, struct node *np,
uid_t uid, uid_t gid)