apparmor: update ctime whenever the mtime changes on an inode
authorJeff Layton <jlayton@kernel.org>
Wed, 5 Jul 2023 19:00:32 +0000 (15:00 -0400)
committerChristian Brauner <brauner@kernel.org>
Mon, 10 Jul 2023 08:04:52 +0000 (10:04 +0200)
commit46fc6b35a6743075f5903eda411e4e0f4f0df84b
tree739019469fddb9699bf8b21c7daf9438d20a716a
parentfb91816e403ed10d7d630b11ae3c7516834d0cce
apparmor: update ctime whenever the mtime changes on an inode

In general, when updating the mtime on an inode, one must also update
the ctime. Add the missing ctime updates.

Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Message-Id: <20230705190309.579783-5-jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
security/apparmor/apparmorfs.c
security/apparmor/policy_unpack.c