Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d671e890 authored by John Johansen's avatar John Johansen
Browse files

apparmor: fix update the mtime of the profile file on replacement

parent 9049a792
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
	}
}