lkml.org 
[lkml]   [2020]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch V4 01/15] seccomp: Provide stub for __secure_computing()
    To avoid #ifdeffery in the upcoming generic syscall entry work code provide
    a stub for __secure_computing() as this is preferred over
    secure_computing() because the TIF flag is already evaluated.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    ---
    V4: New patch
    ---
    include/linux/seccomp.h | 1 +
    1 file changed, 1 insertion(+)

    --- a/include/linux/seccomp.h
    +++ b/include/linux/seccomp.h
    @@ -61,6 +61,7 @@ struct seccomp_filter { };

    #ifdef CONFIG_HAVE_ARCH_SECCOMP_FILTER
    static inline int secure_computing(void) { return 0; }
    +static inline int __secure_computing(void) { return 0; }
    #else
    static inline void secure_computing_strict(int this_syscall) { return; }
    #endif
    \
     
     \ /
      Last update: 2020-07-21 13:11    [W:4.055 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site