aboutgitcodelistschat:MatrixIRC
path: root/cooker/calls/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'cooker/calls/fs.c')
-rw-r--r--cooker/calls/fs.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/cooker/calls/fs.c b/cooker/calls/fs.c
index 469dd88..4135be9 100644
--- a/cooker/calls/fs.c
+++ b/cooker/calls/fs.c
@@ -175,8 +175,35 @@ static struct arg mknodat_args[] = {
{ 0 }
};
+static struct arg chown_args[] = {
+ { 0,
+ {
+ "path", STRING, 0,
+ 0, PATH_MAX,
+ { 0 }
+ }
+ },
+ { 1,
+ {
+ "uid", UID_T, 0,
+ 0, 0,
+ { .d_num = modes },
+ }
+ },
+ { 2,
+ {
+ "gid", GID_T, 0,
+ 0, 0,
+ { 0 },
+ }
+ },
+ { 0 }
+};
+
struct call syscalls_fs[] = {
{ __NR_mknod, "mknod", mknod_args },
{ __NR_mknodat, "mknodat", mknodat_args },
+ { __NR_chown, "chown", chown_args },
+ { __NR_lchown, "lchown", chown_args },
{ 0 },
};