mirror of
				https://git.tukaani.org/xz.git
				synced 2025-11-04 15:32:55 +00:00 
			
		
		
		
	CMake: Edit white space for consistency
This commit is contained in:
		
							parent
							
								
									114cba69db
								
							
						
					
					
						commit
						3c95c93bca
					
				@ -1768,20 +1768,20 @@ if(NOT SANDBOX_FOUND AND XZ_SANDBOX MATCHES "^auto$|^landlock$")
 | 
			
		||||
    # linux/landlock.h, but do not have the syscalls defined
 | 
			
		||||
    # in order to actually use Linux Landlock.
 | 
			
		||||
    check_c_source_compiles("
 | 
			
		||||
        #include <linux/landlock.h>
 | 
			
		||||
        #include <sys/syscall.h>
 | 
			
		||||
        #include <sys/prctl.h>
 | 
			
		||||
            #include <linux/landlock.h>
 | 
			
		||||
            #include <sys/syscall.h>
 | 
			
		||||
            #include <sys/prctl.h>
 | 
			
		||||
 | 
			
		||||
        int main(void)
 | 
			
		||||
        {
 | 
			
		||||
            (void)prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
 | 
			
		||||
            (void)SYS_landlock_create_ruleset;
 | 
			
		||||
            (void)SYS_landlock_restrict_self;
 | 
			
		||||
            (void)LANDLOCK_CREATE_RULESET_VERSION;
 | 
			
		||||
            return 0;
 | 
			
		||||
        }
 | 
			
		||||
            int main(void)
 | 
			
		||||
            {
 | 
			
		||||
                (void)prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
 | 
			
		||||
                (void)SYS_landlock_create_ruleset;
 | 
			
		||||
                (void)SYS_landlock_restrict_self;
 | 
			
		||||
                (void)LANDLOCK_CREATE_RULESET_VERSION;
 | 
			
		||||
                return 0;
 | 
			
		||||
            }
 | 
			
		||||
        "
 | 
			
		||||
    HAVE_LINUX_LANDLOCK)
 | 
			
		||||
        HAVE_LINUX_LANDLOCK)
 | 
			
		||||
 | 
			
		||||
    if(HAVE_LINUX_LANDLOCK)
 | 
			
		||||
        set(SANDBOX_COMPILE_DEFINITION "HAVE_LINUX_LANDLOCK")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user