From 011f42054d1f861cd2435866ba646fa0cf752103 Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 16 Aug 2011 20:07:47 +0000 Subject: Add the fo_chown and fo_chmod methods to struct fileops and use them to implement fchown(2) and fchmod(2) support for several file types that previously lacked it. Add MAC entries for chown/chmod done on posix shared memory and (old) in-kernel posix semaphores. Based on the submission by: glebius Reviewed by: rwatson Approved by: re (bz) --- sys/ofed/include/linux/linux_compat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/ofed/include/linux/linux_compat.c') diff --git a/sys/ofed/include/linux/linux_compat.c b/sys/ofed/include/linux/linux_compat.c index 98ad807..90737f2 100644 --- a/sys/ofed/include/linux/linux_compat.c +++ b/sys/ofed/include/linux/linux_compat.c @@ -559,7 +559,9 @@ struct fileops linuxfileops = { .fo_read = linux_file_read, .fo_poll = linux_file_poll, .fo_close = linux_file_close, - .fo_ioctl = linux_file_ioctl + .fo_ioctl = linux_file_ioctl, + .fo_chmod = invfo_chmod, + .fo_chown = invfo_chown, }; /* -- cgit v1.1