linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [security:next-general 83/85] security/safesetid/lsm.c:17:10: fatal error: asm/syscall.h: No such file or directory
@ 2019-01-30  0:33 kbuild test robot
  2019-01-30 15:56 ` [PATCH] LSM: SafeSetID: remove unused include mortonm
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2019-01-30  0:33 UTC (permalink / raw)
  To: Micah Morton; +Cc: kbuild-all, linux-security-module, James Morris

[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-general
head:   2f87324be7736151bd1f9bf1d63b1eb0401011ba
commit: aeca4e2ca65c1aeacfbe520684e6421719d99417 [83/85] LSM: add SafeSetID module that gates setid calls
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gnu-gcc (Debian 8.2.0-11) 8.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout aeca4e2ca65c1aeacfbe520684e6421719d99417
        # save the attached .config to linux build tree
        GCC_VERSION=8.2.0 make.cross ARCH=m68k 

All errors (new ones prefixed by >>):

>> security/safesetid/lsm.c:17:10: fatal error: asm/syscall.h: No such file or directory
    #include <asm/syscall.h>
             ^~~~~~~~~~~~~~~
   compilation terminated.

vim +17 security/safesetid/lsm.c

    16	
  > 17	#include <asm/syscall.h>
    18	#include <linux/hashtable.h>
    19	#include <linux/lsm_hooks.h>
    20	#include <linux/module.h>
    21	#include <linux/ptrace.h>
    22	#include <linux/sched/task_stack.h>
    23	#include <linux/security.h>
    24	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 48517 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] LSM: SafeSetID: remove unused include
  2019-01-30  0:33 [security:next-general 83/85] security/safesetid/lsm.c:17:10: fatal error: asm/syscall.h: No such file or directory kbuild test robot
@ 2019-01-30 15:56 ` mortonm
  2019-01-30 20:30   ` James Morris
  0 siblings, 1 reply; 3+ messages in thread
From: mortonm @ 2019-01-30 15:56 UTC (permalink / raw)
  To: kbuild-all, linux-security-module, james.morris; +Cc: Micah Morton

From: Micah Morton <mortonm@chromium.org>

The include for asm/syscall.h was needed in a prior version of lsm.c
that checked return values of syscall_get_nr, but since we did away with
that part of the code this include is no longer necessary. Take out this
include since it breaks builds for certain architectures. We no longer
have any arch-specific code in SafeSetID.

Signed-off-by: Micah Morton <mortonm@chromium.org>
---
 security/safesetid/lsm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/security/safesetid/lsm.c b/security/safesetid/lsm.c
index 282a242beb86..cecd38e2ac80 100644
--- a/security/safesetid/lsm.c
+++ b/security/safesetid/lsm.c
@@ -14,7 +14,6 @@
 
 #define pr_fmt(fmt) "SafeSetID: " fmt
 
-#include <asm/syscall.h>
 #include <linux/hashtable.h>
 #include <linux/lsm_hooks.h>
 #include <linux/module.h>
-- 
2.20.1.495.gaa96b0ce6b-goog


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] LSM: SafeSetID: remove unused include
  2019-01-30 15:56 ` [PATCH] LSM: SafeSetID: remove unused include mortonm
@ 2019-01-30 20:30   ` James Morris
  0 siblings, 0 replies; 3+ messages in thread
From: James Morris @ 2019-01-30 20:30 UTC (permalink / raw)
  To: Micah Morton; +Cc: kbuild-all, linux-security-module, james.morris

On Wed, 30 Jan 2019, mortonm@chromium.org wrote:

> From: Micah Morton <mortonm@chromium.org>
> 
> The include for asm/syscall.h was needed in a prior version of lsm.c
> that checked return values of syscall_get_nr, but since we did away with
> that part of the code this include is no longer necessary. Take out this
> include since it breaks builds for certain architectures. We no longer
> have any arch-specific code in SafeSetID.
> 
> Signed-off-by: Micah Morton <mortonm@chromium.org>

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-general


> ---
>  security/safesetid/lsm.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/security/safesetid/lsm.c b/security/safesetid/lsm.c
> index 282a242beb86..cecd38e2ac80 100644
> --- a/security/safesetid/lsm.c
> +++ b/security/safesetid/lsm.c
> @@ -14,7 +14,6 @@
>  
>  #define pr_fmt(fmt) "SafeSetID: " fmt
>  
> -#include <asm/syscall.h>
>  #include <linux/hashtable.h>
>  #include <linux/lsm_hooks.h>
>  #include <linux/module.h>
> 

-- 
James Morris
<jmorris@namei.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-30 20:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-30  0:33 [security:next-general 83/85] security/safesetid/lsm.c:17:10: fatal error: asm/syscall.h: No such file or directory kbuild test robot
2019-01-30 15:56 ` [PATCH] LSM: SafeSetID: remove unused include mortonm
2019-01-30 20:30   ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).