diff options
author | John Johansen <john.johansen@canonical.com> | 2014-07-25 04:01:56 -0700 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2016-07-12 08:43:10 -0700 |
commit | d671e890205a663429da74e1972e652bea4d73ab (patch) | |
tree | 93980b7ce034ff8a7f692aabdc044497b5e27f47 /security | |
parent | 9049a7922124d843a2cd26a02b1d00a17596ec0c (diff) | |
download | op-kernel-dev-d671e890205a663429da74e1972e652bea4d73ab.zip op-kernel-dev-d671e890205a663429da74e1972e652bea4d73ab.tar.gz |
apparmor: fix update the mtime of the profile file on replacement
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/apparmor/apparmorfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index ad4fa49..45a6199 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c @@ -379,6 +379,8 @@ void __aa_fs_profile_migrate_dents(struct aa_profile *old, for (i = 0; i < AAFS_PROF_SIZEOF; i++) { new->dents[i] = old->dents[i]; + if (new->dents[i]) + new->dents[i]->d_inode->i_mtime = CURRENT_TIME; old->dents[i] = NULL; } } |