All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Roberto Sassu <roberto.sassu@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [robertosassu:ima-evm-lsms-v2-devel-v6 21/25] security/integrity/ima/ima_main.c:541:5: warning: no previous prototype for 'ima_file_check'
Date: Thu, 31 Aug 2023 02:56:01 +0800	[thread overview]
Message-ID: <202308310205.KOGOF1oI-lkp@intel.com> (raw)

tree:   https://github.com/robertosassu/linux ima-evm-lsms-v2-devel-v6
head:   8d3db5840032b2f14a363ad273bc13baeaec3cc5
commit: 20ad98a2e4878bcd22d821c7c8671aaeddd66932 [21/25] ima: Move to LSM infrastructure
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230831/202308310205.KOGOF1oI-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230831/202308310205.KOGOF1oI-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308310205.KOGOF1oI-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> security/integrity/ima/ima_main.c:541:5: warning: no previous prototype for 'ima_file_check' [-Wmissing-prototypes]
     541 | int ima_file_check(struct file *file, int mask)
         |     ^~~~~~~~~~~~~~


vim +/ima_file_check +541 security/integrity/ima/ima_main.c

3323eec921efd8 Mimi Zohar      2009-02-04  530  
8eb988c70e7709 Mimi Zohar      2010-01-20  531  /**
41d75dd96205ef Jiele Zhao      2021-04-06  532   * ima_file_check - based on policy, collect/store measurement.
8eb988c70e7709 Mimi Zohar      2010-01-20  533   * @file: pointer to the file to be measured
20f482ab9e0f80 Lans Zhang      2017-01-06  534   * @mask: contains MAY_READ, MAY_WRITE, MAY_EXEC or MAY_APPEND
8eb988c70e7709 Mimi Zohar      2010-01-20  535   *
8eb988c70e7709 Mimi Zohar      2010-01-20  536   * Measure files based on the ima_must_measure() policy decision.
8eb988c70e7709 Mimi Zohar      2010-01-20  537   *
750943a30714b7 Dmitry Kasatkin 2012-09-27  538   * On success return 0.  On integrity appraisal error, assuming the file
750943a30714b7 Dmitry Kasatkin 2012-09-27  539   * is in policy and IMA-appraisal is in enforcing mode, return -EACCES.
8eb988c70e7709 Mimi Zohar      2010-01-20  540   */
6035a27b25ab9d Al Viro         2018-06-08 @541  int ima_file_check(struct file *file, int mask)
8eb988c70e7709 Mimi Zohar      2010-01-20  542  {
d906c10d8a3165 Matthew Garrett 2018-01-08  543  	u32 secid;
d906c10d8a3165 Matthew Garrett 2018-01-08  544  
6326948f940dc3 Paul Moore      2021-09-29  545  	security_current_getsecid_subj(&secid);
d906c10d8a3165 Matthew Garrett 2018-01-08  546  	return process_measurement(file, current_cred(), secid, NULL, 0,
20f482ab9e0f80 Lans Zhang      2017-01-06  547  				   mask & (MAY_READ | MAY_WRITE | MAY_EXEC |
6035a27b25ab9d Al Viro         2018-06-08  548  					   MAY_APPEND), FILE_CHECK);
8eb988c70e7709 Mimi Zohar      2010-01-20  549  }
9bbb6cad0173e6 Mimi Zohar      2010-01-26  550  EXPORT_SYMBOL_GPL(ima_file_check);
8eb988c70e7709 Mimi Zohar      2010-01-20  551  

:::::: The code at line 541 was first introduced by commit
:::::: 6035a27b25ab9dadc8c3d5c5df5eae3fca62fc95 IMA: don't propagate opened through the entire thing

:::::: TO: Al Viro <viro@zeniv.linux.org.uk>
:::::: CC: Al Viro <viro@zeniv.linux.org.uk>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2023-08-30 18:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202308310205.KOGOF1oI-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=roberto.sassu@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.