]> granicus.if.org Git - zfs/commit
Fix fchange in zpl_ioctl_setflags
authorChunwei Chen <david.chen@osnexus.com>
Fri, 16 Dec 2016 20:41:56 +0000 (12:41 -0800)
committerChunwei Chen <david.chen@osnexus.com>
Fri, 16 Dec 2016 20:46:46 +0000 (12:46 -0800)
commitc360af541117a0978b7fe146b59c12ad2f80d162
tree2a1e6216ba97a7e88d39071d3c45c3cbf57fcaa4
parent05100ec8f06589896fcd2a847a12c5b6fcb67b81
Fix fchange in zpl_ioctl_setflags

The fchange in zpl_ioctl_setflags was for detecting flag change. However it
was incorrect and would always fail to detect a flag change from set to unset,
causing users without CAP_LINUX_IMMUTABLE to be able to unset flags.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
module/zfs/zpl_file.c