]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.4-sec-sys_chown.patch
- added from sources.redhat.com cvs
[packages/kernel.git] / linux-2.4-sec-sys_chown.patch
CommitLineData
5e056607
JB
1# This is a BitKeeper generated diff -Nru style patch.
2#
3# ChangeSet
4# 2004/07/03 18:32:40-03:00 marcelo@logos.cnet
5# Thomas Biege: Fix missing DAC check on sys_chown
6#
7# fs/attr.c
8# 2004/07/03 18:28:30-03:00 marcelo@logos.cnet +1 -0
9# Thomas Biege: Fix missing DAC check on sys_chown
10#
11# This is a BitKeeper generated diff -Nru style patch.
12#
13# ChangeSet
14# 2004/07/03 19:29:45-03:00 marcelo@logos.cnet
15# Add missing bracket to inode_change_ok() fix
16# TAG: v2.4.27-rc3
17#
18# fs/attr.c
19# 2004/07/03 19:28:29-03:00 marcelo@logos.cnet +1 -1
20# Add missing bracket to inode_change_ok() fix
21#
22diff -Nru a/fs/attr.c b/fs/attr.c
23--- a/fs/attr.c 2004-07-09 02:08:10 -07:00
24+++ b/fs/attr.c 2004-07-09 02:08:10 -07:00
25@@ -33,7 +33,8 @@
26
27 /* Make sure caller can chgrp. */
28 if ((ia_valid & ATTR_GID) &&
29- (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid) &&
30+ (current->fsuid != inode->i_uid ||
31+ (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid)) &&
32 !capable(CAP_CHOWN))
33 goto error;
34
This page took 0.214 seconds and 4 git commands to generate.