Commit Diff


commit - dc607f079dc09cab9843a918024c3771f5214f05
commit + faa3086db292eb93914697ff2f78785fd8793af1
blob - 3a9158dd54f0f2e7eb4a9e9ec82f9927159eb553
blob + db793e0f992deaa8f3d61b04fa596d70ef797eb4
--- compat/landlock.c
+++ compat/landlock.c
@@ -82,21 +82,22 @@ landlock_no_fs(void)
 		 * Failure in doing so will implicitly allow those actions
 		 * (i.e. omitting READ_FILE will allow to read _any_ file.)
 		 */
-		.handled_access_fs = LANDLOCK_ACCESS_FS_EXECUTE |
-				     LANDLOCK_ACCESS_FS_READ_FILE |
-				     LANDLOCK_ACCESS_FS_READ_DIR |
-				     LANDLOCK_ACCESS_FS_WRITE_FILE |
-				     LANDLOCK_ACCESS_FS_REMOVE_DIR |
-				     LANDLOCK_ACCESS_FS_REMOVE_FILE |
-				     LANDLOCK_ACCESS_FS_MAKE_CHAR |
-				     LANDLOCK_ACCESS_FS_MAKE_DIR |
-				     LANDLOCK_ACCESS_FS_MAKE_REG |
-				     LANDLOCK_ACCESS_FS_MAKE_SOCK |
-				     LANDLOCK_ACCESS_FS_MAKE_FIFO |
-				     LANDLOCK_ACCESS_FS_MAKE_BLOCK |
-				     LANDLOCK_ACCESS_FS_MAKE_SYM |
-				     LANDLOCK_ACCESS_FS_REFER |
-				     LANDLOCK_ACCESS_FS_TRUNCATE,
+		.handled_access_fs =
+		    LANDLOCK_ACCESS_FS_EXECUTE |
+		    LANDLOCK_ACCESS_FS_READ_FILE |
+		    LANDLOCK_ACCESS_FS_READ_DIR |
+		    LANDLOCK_ACCESS_FS_WRITE_FILE |
+		    LANDLOCK_ACCESS_FS_REMOVE_DIR |
+		    LANDLOCK_ACCESS_FS_REMOVE_FILE |
+		    LANDLOCK_ACCESS_FS_MAKE_CHAR |
+		    LANDLOCK_ACCESS_FS_MAKE_DIR |
+		    LANDLOCK_ACCESS_FS_MAKE_REG |
+		    LANDLOCK_ACCESS_FS_MAKE_SOCK |
+		    LANDLOCK_ACCESS_FS_MAKE_FIFO |
+		    LANDLOCK_ACCESS_FS_MAKE_BLOCK |
+		    LANDLOCK_ACCESS_FS_MAKE_SYM |
+		    LANDLOCK_ACCESS_FS_REFER |
+		    LANDLOCK_ACCESS_FS_TRUNCATE,
 	};
 	int fd, abi, saved_errno;