[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202311040508.AUhi04RY-lkp@intel.com>
Date: Sat, 4 Nov 2023 05:59:31 +0800
From: kernel test robot <lkp@...el.com>
To: John Johansen <john.johansen@...onical.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Georgia Garcia <georgia.garcia@...onical.com>
Subject: security/apparmor/task.c:290: warning: Function parameter or member
'tracee_cred' not described in 'aa_may_ptrace'
Hi John,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e392ea4d4d00880bf94550151b1ace4f88a4b17a
commit: 90c436a64a6e20482a9a613c47eb4af2e8a5328e apparmor: pass cred through to audit info.
date: 2 weeks ago
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20231104/202311040508.AUhi04RY-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231104/202311040508.AUhi04RY-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311040508.AUhi04RY-lkp@intel.com/
All warnings (new ones prefixed by >>):
security/apparmor/task.c:290: warning: Function parameter or member 'tracer_cred' not described in 'aa_may_ptrace'
>> security/apparmor/task.c:290: warning: Function parameter or member 'tracee_cred' not described in 'aa_may_ptrace'
vim +290 security/apparmor/task.c
eac931254d99c5 John Johansen 2021-11-22 278
eac931254d99c5 John Johansen 2021-11-22 279 /**
eac931254d99c5 John Johansen 2021-11-22 280 * aa_may_ptrace - test if tracer task can trace the tracee
eac931254d99c5 John Johansen 2021-11-22 281 * @tracer: label of the task doing the tracing (NOT NULL)
eac931254d99c5 John Johansen 2021-11-22 282 * @tracee: task label to be traced
eac931254d99c5 John Johansen 2021-11-22 283 * @request: permission request
eac931254d99c5 John Johansen 2021-11-22 284 *
eac931254d99c5 John Johansen 2021-11-22 285 * Returns: %0 else error code if permission denied or error
eac931254d99c5 John Johansen 2021-11-22 286 */
90c436a64a6e20 John Johansen 2022-09-19 287 int aa_may_ptrace(const struct cred *tracer_cred, struct aa_label *tracer,
90c436a64a6e20 John Johansen 2022-09-19 288 const struct cred *tracee_cred, struct aa_label *tracee,
eac931254d99c5 John Johansen 2021-11-22 289 u32 request)
eac931254d99c5 John Johansen 2021-11-22 @290 {
:::::: The code at line 290 was first introduced by commit
:::::: eac931254d99c5aeb12ace02366dd338c4371164 apparmor: move ptrace mediation to more logical task.{h,c}
:::::: TO: John Johansen <john.johansen@...onical.com>
:::::: CC: John Johansen <john.johansen@...onical.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists