Re: [PATCH][SELINUX] Fix selinux_inode_setattr hook

From: Chris Wright
Date: Fri Feb 04 2005 - 14:09:39 EST


* Stephen Smalley (sds@xxxxxxxxxxxxx) wrote:
> This patch against 2.6.11-rc3 fixes the selinux_inode_setattr hook
> function to honor the ATTR_FORCE flag, skipping any permission checking
> in that case. Otherwise, it is possible though unlikely for a denial
> from the hook to prevent proper updating, e.g. for remove_suid upon
> writing to a file. This would only occur if the process had write
> permission to a suid file but lacked setattr permission to it. Please
> apply.

Is there any reason not to promote this to the framework?

thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/