mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Line offset rediff only
This commit is contained in:
parent
b9057fd0bc
commit
152bc78d8b
12 changed files with 36 additions and 36 deletions
|
@ -49,7 +49,7 @@ Index: b/mm/filemap.c
|
|||
|
||||
return 0;
|
||||
}
|
||||
@@ -2246,7 +2246,7 @@ __generic_file_aio_write_nolock(struct k
|
||||
@@ -2252,7 +2252,7 @@ __generic_file_aio_write_nolock(struct k
|
||||
if (count == 0)
|
||||
goto out;
|
||||
|
||||
|
@ -88,7 +88,7 @@ Index: b/fs/splice.c
|
|||
===================================================================
|
||||
--- a/fs/splice.c
|
||||
+++ b/fs/splice.c
|
||||
@@ -844,7 +844,7 @@ generic_file_splice_write_nolock(struct
|
||||
@@ -797,7 +797,7 @@ generic_file_splice_write_nolock(struct
|
||||
ssize_t ret;
|
||||
int err;
|
||||
|
||||
|
@ -97,7 +97,7 @@ Index: b/fs/splice.c
|
|||
if (unlikely(err))
|
||||
return err;
|
||||
|
||||
@@ -890,10 +890,10 @@ generic_file_splice_write(struct pipe_in
|
||||
@@ -843,10 +843,10 @@ generic_file_splice_write(struct pipe_in
|
||||
ssize_t ret;
|
||||
int err;
|
||||
|
||||
|
@ -144,7 +144,7 @@ Index: b/mm/filemap_xip.c
|
|||
===================================================================
|
||||
--- a/mm/filemap_xip.c
|
||||
+++ b/mm/filemap_xip.c
|
||||
@@ -379,7 +379,7 @@ xip_file_write(struct file *filp, const
|
||||
@@ -405,7 +405,7 @@ xip_file_write(struct file *filp, const
|
||||
if (count == 0)
|
||||
goto out_backing;
|
||||
|
||||
|
@ -157,7 +157,7 @@ Index: b/mm/shmem.c
|
|||
===================================================================
|
||||
--- a/mm/shmem.c
|
||||
+++ b/mm/shmem.c
|
||||
@@ -1447,7 +1447,7 @@ shmem_file_write(struct file *file, cons
|
||||
@@ -1516,7 +1516,7 @@ shmem_file_write(struct file *file, cons
|
||||
if (err || !count)
|
||||
goto out;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
}
|
||||
#endif
|
||||
|
||||
@@ -476,13 +477,13 @@ out_nfserr:
|
||||
@@ -479,13 +480,13 @@ out_nfserr:
|
||||
}
|
||||
|
||||
static struct posix_acl *
|
||||
|
@ -47,7 +47,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
if (!buflen)
|
||||
buflen = -ENODATA;
|
||||
if (buflen <= 0)
|
||||
@@ -494,14 +495,15 @@ _get_posix_acl(struct dentry *dentry, ch
|
||||
@@ -497,14 +498,15 @@ _get_posix_acl(struct dentry *dentry, ch
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -65,7 +65,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
if (IS_ERR(pacl) && PTR_ERR(pacl) == -ENODATA)
|
||||
pacl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL);
|
||||
if (IS_ERR(pacl)) {
|
||||
@@ -511,7 +513,7 @@ nfsd4_get_nfs4_acl(struct svc_rqst *rqst
|
||||
@@ -514,7 +516,7 @@ nfsd4_get_nfs4_acl(struct svc_rqst *rqst
|
||||
}
|
||||
|
||||
if (S_ISDIR(inode->i_mode)) {
|
||||
|
@ -74,7 +74,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
if (IS_ERR(dpacl) && PTR_ERR(dpacl) == -ENODATA)
|
||||
dpacl = NULL;
|
||||
else if (IS_ERR(dpacl)) {
|
||||
@@ -1935,7 +1937,8 @@ nfsd_get_posix_acl(struct svc_fh *fhp, i
|
||||
@@ -1938,7 +1940,8 @@ nfsd_get_posix_acl(struct svc_fh *fhp, i
|
||||
return ERR_PTR(-EOPNOTSUPP);
|
||||
}
|
||||
|
||||
|
@ -162,7 +162,7 @@ Index: b/fs/nfsd/nfs4xdr.c
|
|||
===================================================================
|
||||
--- a/fs/nfsd/nfs4xdr.c
|
||||
+++ b/fs/nfsd/nfs4xdr.c
|
||||
@@ -1472,7 +1472,7 @@ nfsd4_encode_fattr(struct svc_fh *fhp, s
|
||||
@@ -1470,7 +1470,7 @@ nfsd4_encode_fattr(struct svc_fh *fhp, s
|
||||
}
|
||||
if (bmval0 & (FATTR4_WORD0_ACL | FATTR4_WORD0_ACLSUPPORT
|
||||
| FATTR4_WORD0_SUPPORTED_ATTRS)) {
|
||||
|
|
|
@ -43,7 +43,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
===================================================================
|
||||
--- a/fs/ecryptfs/inode.c
|
||||
+++ b/fs/ecryptfs/inode.c
|
||||
@@ -414,19 +414,24 @@ static int ecryptfs_link(struct dentry *
|
||||
@@ -411,19 +411,24 @@ static int ecryptfs_link(struct dentry *
|
||||
struct dentry *new_dentry)
|
||||
{
|
||||
struct dentry *lower_old_dentry;
|
||||
|
@ -74,7 +74,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
===================================================================
|
||||
--- a/fs/nfsd/vfs.c
|
||||
+++ b/fs/nfsd/vfs.c
|
||||
@@ -1531,7 +1531,8 @@ nfsd_link(struct svc_rqst *rqstp, struct
|
||||
@@ -1534,7 +1534,8 @@ nfsd_link(struct svc_rqst *rqstp, struct
|
||||
dold = tfhp->fh_dentry;
|
||||
dest = dold->d_inode;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
===================================================================
|
||||
--- a/fs/ecryptfs/inode.c
|
||||
+++ b/fs/ecryptfs/inode.c
|
||||
@@ -512,11 +512,14 @@ static int ecryptfs_mkdir(struct inode *
|
||||
@@ -509,11 +509,14 @@ static int ecryptfs_mkdir(struct inode *
|
||||
{
|
||||
int rc;
|
||||
struct dentry *lower_dentry;
|
||||
|
@ -64,7 +64,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
===================================================================
|
||||
--- a/fs/nfsd/vfs.c
|
||||
+++ b/fs/nfsd/vfs.c
|
||||
@@ -1183,7 +1183,8 @@ nfsd_create(struct svc_rqst *rqstp, stru
|
||||
@@ -1186,7 +1186,8 @@ nfsd_create(struct svc_rqst *rqstp, stru
|
||||
host_err = vfs_create(dirp, dchild, iap->ia_mode, NULL);
|
||||
break;
|
||||
case S_IFDIR:
|
||||
|
|
|
@ -7,7 +7,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
===================================================================
|
||||
--- a/fs/ecryptfs/inode.c
|
||||
+++ b/fs/ecryptfs/inode.c
|
||||
@@ -563,11 +563,14 @@ ecryptfs_mknod(struct inode *dir, struct
|
||||
@@ -560,11 +560,14 @@ ecryptfs_mknod(struct inode *dir, struct
|
||||
{
|
||||
int rc;
|
||||
struct dentry *lower_dentry;
|
||||
|
@ -57,7 +57,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
===================================================================
|
||||
--- a/fs/nfsd/vfs.c
|
||||
+++ b/fs/nfsd/vfs.c
|
||||
@@ -1190,7 +1190,8 @@ nfsd_create(struct svc_rqst *rqstp, stru
|
||||
@@ -1193,7 +1193,8 @@ nfsd_create(struct svc_rqst *rqstp, stru
|
||||
case S_IFBLK:
|
||||
case S_IFIFO:
|
||||
case S_IFSOCK:
|
||||
|
|
|
@ -55,7 +55,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
===================================================================
|
||||
--- a/fs/ecryptfs/inode.c
|
||||
+++ b/fs/ecryptfs/inode.c
|
||||
@@ -873,12 +873,14 @@ static int ecryptfs_setattr(struct dentr
|
||||
@@ -870,12 +870,14 @@ static int ecryptfs_setattr(struct dentr
|
||||
{
|
||||
int rc = 0;
|
||||
struct dentry *lower_dentry;
|
||||
|
@ -70,7 +70,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
inode = dentry->d_inode;
|
||||
lower_inode = ecryptfs_inode_to_lower(inode);
|
||||
if (ia->ia_valid & ATTR_SIZE) {
|
||||
@@ -893,7 +895,7 @@ static int ecryptfs_setattr(struct dentr
|
||||
@@ -890,7 +892,7 @@ static int ecryptfs_setattr(struct dentr
|
||||
if (rc < 0)
|
||||
goto out;
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
err = nfserrno(host_err);
|
||||
fh_unlock(fhp);
|
||||
}
|
||||
@@ -890,13 +890,13 @@ out:
|
||||
@@ -893,13 +893,13 @@ out:
|
||||
return err;
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
mutex_unlock(&dentry->d_inode->i_mutex);
|
||||
}
|
||||
|
||||
@@ -955,7 +955,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, s
|
||||
@@ -958,7 +958,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, s
|
||||
|
||||
/* clear setuid/setgid flag after write */
|
||||
if (host_err >= 0 && (inode->i_mode & (S_ISUID | S_ISGID)))
|
||||
|
@ -294,7 +294,7 @@ Index: b/fs/sysfs/file.c
|
|||
===================================================================
|
||||
--- a/fs/sysfs/file.c
|
||||
+++ b/fs/sysfs/file.c
|
||||
@@ -560,7 +560,7 @@ int sysfs_chmod_file(struct kobject *kob
|
||||
@@ -584,7 +584,7 @@ int sysfs_chmod_file(struct kobject *kob
|
||||
newattrs.ia_mode = (mode & S_IALLUGO) |
|
||||
(inode->i_mode & ~S_IALLUGO);
|
||||
newattrs.ia_valid = ATTR_MODE | ATTR_CTIME;
|
||||
|
|
|
@ -7,7 +7,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
===================================================================
|
||||
--- a/fs/nfsd/vfs.c
|
||||
+++ b/fs/nfsd/vfs.c
|
||||
@@ -1989,7 +1989,8 @@ nfsd_set_posix_acl(struct svc_fh *fhp, i
|
||||
@@ -1992,7 +1992,8 @@ nfsd_set_posix_acl(struct svc_fh *fhp, i
|
||||
if (!S_ISDIR(inode->i_mode) && type == ACL_TYPE_DEFAULT)
|
||||
error = 0;
|
||||
else {
|
||||
|
|
|
@ -7,7 +7,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
===================================================================
|
||||
--- a/fs/ecryptfs/inode.c
|
||||
+++ b/fs/ecryptfs/inode.c
|
||||
@@ -601,19 +601,24 @@ ecryptfs_rename(struct inode *old_dir, s
|
||||
@@ -598,19 +598,24 @@ ecryptfs_rename(struct inode *old_dir, s
|
||||
{
|
||||
int rc;
|
||||
struct dentry *lower_old_dentry;
|
||||
|
@ -96,7 +96,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
===================================================================
|
||||
--- a/fs/nfsd/vfs.c
|
||||
+++ b/fs/nfsd/vfs.c
|
||||
@@ -1625,7 +1625,8 @@ nfsd_rename(struct svc_rqst *rqstp, stru
|
||||
@@ -1628,7 +1628,8 @@ nfsd_rename(struct svc_rqst *rqstp, stru
|
||||
host_err = -EPERM;
|
||||
} else
|
||||
#endif
|
||||
|
|
|
@ -7,7 +7,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
===================================================================
|
||||
--- a/fs/ecryptfs/inode.c
|
||||
+++ b/fs/ecryptfs/inode.c
|
||||
@@ -545,14 +545,16 @@ out:
|
||||
@@ -542,14 +542,16 @@ out:
|
||||
static int ecryptfs_rmdir(struct inode *dir, struct dentry *dentry)
|
||||
{
|
||||
struct dentry *lower_dentry;
|
||||
|
@ -64,7 +64,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
===================================================================
|
||||
--- a/fs/nfsd/vfs.c
|
||||
+++ b/fs/nfsd/vfs.c
|
||||
@@ -1699,7 +1699,7 @@ nfsd_unlink(struct svc_rqst *rqstp, stru
|
||||
@@ -1702,7 +1702,7 @@ nfsd_unlink(struct svc_rqst *rqstp, stru
|
||||
#endif
|
||||
host_err = vfs_unlink(dirp, rdentry);
|
||||
} else { /* It's RMDIR */
|
||||
|
|
|
@ -59,7 +59,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
if (host_error < 0)
|
||||
goto out_nfserr;
|
||||
}
|
||||
@@ -1975,7 +1980,8 @@ nfsd_set_posix_acl(struct svc_fh *fhp, i
|
||||
@@ -1978,7 +1983,8 @@ nfsd_set_posix_acl(struct svc_fh *fhp, i
|
||||
size = 0;
|
||||
|
||||
if (size)
|
||||
|
|
|
@ -7,7 +7,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
===================================================================
|
||||
--- a/fs/ecryptfs/inode.c
|
||||
+++ b/fs/ecryptfs/inode.c
|
||||
@@ -473,6 +473,7 @@ static int ecryptfs_symlink(struct inode
|
||||
@@ -470,6 +470,7 @@ static int ecryptfs_symlink(struct inode
|
||||
{
|
||||
int rc;
|
||||
struct dentry *lower_dentry;
|
||||
|
@ -15,7 +15,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
struct dentry *lower_dir_dentry;
|
||||
umode_t mode;
|
||||
char *encoded_symname;
|
||||
@@ -481,6 +482,7 @@ static int ecryptfs_symlink(struct inode
|
||||
@@ -478,6 +479,7 @@ static int ecryptfs_symlink(struct inode
|
||||
|
||||
lower_dentry = ecryptfs_dentry_to_lower(dentry);
|
||||
dget(lower_dentry);
|
||||
|
@ -23,7 +23,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
lower_dir_dentry = lock_parent(lower_dentry);
|
||||
mode = S_IALLUGO;
|
||||
encoded_symlen = ecryptfs_encode_filename(crypt_stat, symname,
|
||||
@@ -490,7 +492,7 @@ static int ecryptfs_symlink(struct inode
|
||||
@@ -487,7 +489,7 @@ static int ecryptfs_symlink(struct inode
|
||||
rc = encoded_symlen;
|
||||
goto out_lock;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
===================================================================
|
||||
--- a/fs/nfsd/vfs.c
|
||||
+++ b/fs/nfsd/vfs.c
|
||||
@@ -1432,6 +1432,7 @@ nfsd_symlink(struct svc_rqst *rqstp, str
|
||||
@@ -1435,6 +1435,7 @@ nfsd_symlink(struct svc_rqst *rqstp, str
|
||||
struct iattr *iap)
|
||||
{
|
||||
struct dentry *dentry, *dnew;
|
||||
|
@ -68,7 +68,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
__be32 err, cerr;
|
||||
int host_err;
|
||||
umode_t mode;
|
||||
@@ -1458,6 +1459,7 @@ nfsd_symlink(struct svc_rqst *rqstp, str
|
||||
@@ -1461,6 +1462,7 @@ nfsd_symlink(struct svc_rqst *rqstp, str
|
||||
if (iap && (iap->ia_valid & ATTR_MODE))
|
||||
mode = iap->ia_mode & S_IALLUGO;
|
||||
|
||||
|
@ -76,7 +76,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
if (unlikely(path[plen] != 0)) {
|
||||
char *path_alloced = kmalloc(plen+1, GFP_KERNEL);
|
||||
if (path_alloced == NULL)
|
||||
@@ -1465,11 +1467,12 @@ nfsd_symlink(struct svc_rqst *rqstp, str
|
||||
@@ -1468,11 +1470,12 @@ nfsd_symlink(struct svc_rqst *rqstp, str
|
||||
else {
|
||||
strncpy(path_alloced, path, plen);
|
||||
path_alloced[plen] = 0;
|
||||
|
|
|
@ -7,7 +7,7 @@ Index: b/fs/ecryptfs/inode.c
|
|||
===================================================================
|
||||
--- a/fs/ecryptfs/inode.c
|
||||
+++ b/fs/ecryptfs/inode.c
|
||||
@@ -456,10 +456,11 @@ static int ecryptfs_unlink(struct inode
|
||||
@@ -453,10 +453,11 @@ static int ecryptfs_unlink(struct inode
|
||||
{
|
||||
int rc = 0;
|
||||
struct dentry *lower_dentry = ecryptfs_dentry_to_lower(dentry);
|
||||
|
@ -59,7 +59,7 @@ Index: b/fs/nfsd/vfs.c
|
|||
===================================================================
|
||||
--- a/fs/nfsd/vfs.c
|
||||
+++ b/fs/nfsd/vfs.c
|
||||
@@ -1697,7 +1697,7 @@ nfsd_unlink(struct svc_rqst *rqstp, stru
|
||||
@@ -1700,7 +1700,7 @@ nfsd_unlink(struct svc_rqst *rqstp, stru
|
||||
host_err = -EPERM;
|
||||
} else
|
||||
#endif
|
||||
|
@ -85,7 +85,7 @@ Index: b/ipc/mqueue.c
|
|||
===================================================================
|
||||
--- a/ipc/mqueue.c
|
||||
+++ b/ipc/mqueue.c
|
||||
@@ -747,7 +747,7 @@ asmlinkage long sys_mq_unlink(const char
|
||||
@@ -748,7 +748,7 @@ asmlinkage long sys_mq_unlink(const char
|
||||
if (inode)
|
||||
atomic_inc(&inode->i_count);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue