aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-10-31 01:22:04 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-11-19 13:01:25 -0500
commitb583043e99bc6d91e98fae32bd9eff6a5958240a (patch)
tree8f2f9a4d28ae16c7d452808ff400bb1f31fb09c8 /security
parent30e46aba8f1010b03178f04c0c56be299c063df2 (diff)
kill f_dentry uses
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r--security/commoncap.c2
-rw-r--r--security/integrity/ima/ima_api.c4
-rw-r--r--security/integrity/ima/ima_appraise.c4
-rw-r--r--security/integrity/ima/ima_template_lib.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/security/commoncap.c b/security/commoncap.c
index bab0611afc1e..2915d8503054 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -446,7 +446,7 @@ static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_c
446 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) 446 if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID)
447 return 0; 447 return 0;
448 448
449 dentry = dget(bprm->file->f_dentry); 449 dentry = dget(bprm->file->f_path.dentry);
450 450
451 rc = get_vfs_caps_from_disk(dentry, &vcaps); 451 rc = get_vfs_caps_from_disk(dentry, &vcaps);
452 if (rc < 0) { 452 if (rc < 0) {
diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c
index 86885979918c..f92be1b14089 100644
--- a/security/integrity/ima/ima_api.c
+++ b/security/integrity/ima/ima_api.c
@@ -196,7 +196,7 @@ int ima_collect_measurement(struct integrity_iint_cache *iint,
196{ 196{
197 const char *audit_cause = "failed"; 197 const char *audit_cause = "failed";
198 struct inode *inode = file_inode(file); 198 struct inode *inode = file_inode(file);
199 const char *filename = file->f_dentry->d_name.name; 199 const char *filename = file->f_path.dentry->d_name.name;
200 int result = 0; 200 int result = 0;
201 struct { 201 struct {
202 struct ima_digest_data hdr; 202 struct ima_digest_data hdr;
@@ -204,7 +204,7 @@ int ima_collect_measurement(struct integrity_iint_cache *iint,
204 } hash; 204 } hash;
205 205
206 if (xattr_value) 206 if (xattr_value)
207 *xattr_len = ima_read_xattr(file->f_dentry, xattr_value); 207 *xattr_len = ima_read_xattr(file->f_path.dentry, xattr_value);
208 208
209 if (!(iint->flags & IMA_COLLECTED)) { 209 if (!(iint->flags & IMA_COLLECTED)) {
210 u64 i_version = file_inode(file)->i_version; 210 u64 i_version = file_inode(file)->i_version;
diff --git a/security/integrity/ima/ima_appraise.c b/security/integrity/ima/ima_appraise.c
index 922685483bd3..c2f203accbd1 100644
--- a/security/integrity/ima/ima_appraise.c
+++ b/security/integrity/ima/ima_appraise.c
@@ -189,7 +189,7 @@ int ima_appraise_measurement(int func, struct integrity_iint_cache *iint,
189{ 189{
190 static const char op[] = "appraise_data"; 190 static const char op[] = "appraise_data";
191 char *cause = "unknown"; 191 char *cause = "unknown";
192 struct dentry *dentry = file->f_dentry; 192 struct dentry *dentry = file->f_path.dentry;
193 struct inode *inode = dentry->d_inode; 193 struct inode *inode = dentry->d_inode;
194 enum integrity_status status = INTEGRITY_UNKNOWN; 194 enum integrity_status status = INTEGRITY_UNKNOWN;
195 int rc = xattr_len, hash_start = 0; 195 int rc = xattr_len, hash_start = 0;
@@ -289,7 +289,7 @@ out:
289 */ 289 */
290void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file) 290void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file)
291{ 291{
292 struct dentry *dentry = file->f_dentry; 292 struct dentry *dentry = file->f_path.dentry;
293 int rc = 0; 293 int rc = 0;
294 294
295 /* do not collect and update hash for digital signatures */ 295 /* do not collect and update hash for digital signatures */
diff --git a/security/integrity/ima/ima_template_lib.c b/security/integrity/ima/ima_template_lib.c
index 1506f0248572..bcfc36cbde6a 100644
--- a/security/integrity/ima/ima_template_lib.c
+++ b/security/integrity/ima/ima_template_lib.c
@@ -284,7 +284,7 @@ static int ima_eventname_init_common(struct integrity_iint_cache *iint,
284 } 284 }
285 285
286 if (file) { 286 if (file) {
287 cur_filename = file->f_dentry->d_name.name; 287 cur_filename = file->f_path.dentry->d_name.name;
288 cur_filename_len = strlen(cur_filename); 288 cur_filename_len = strlen(cur_filename);
289 } else 289 } else
290 /* 290 /*