summaryrefslogtreecommitdiff
path: root/security/apparmor/policy_unpack.c
diff options
context:
space:
mode:
authorRae Moar <rmoar@google.com>2023-01-27 20:12:19 +0000
committerJohn Johansen <john.johansen@canonical.com>2023-07-06 10:58:49 -0700
commitb54aebd4411134b525a82d663a26b2f135ecb7e8 (patch)
tree94a642e5dd9e758838cb58d5e9908878ccedf705 /security/apparmor/policy_unpack.c
parent76862af5d1add618f0cc99868bc729925f9551d2 (diff)
apparmor: fix use of strcpy in policy_unpack_test
Replace the use of strcpy() in build_aa_ext_struct() in policy_unpack_test.c with strscpy(). strscpy() is the safer method to use to ensure the buffer does not overflow. This was found by kernel test robot: https://lore.kernel.org/all/202301040348.NbfVsXO0-lkp@intel.com/. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Rae Moar <rmoar@google.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/policy_unpack.c')
0 files changed, 0 insertions, 0 deletions