Commit Diff


commit - 97799ccd4b67a81f97039305d4fdd66588da9962
commit + 5e997b01390a9de2b9cefa7c44375da470e447c6
blob - 47a5209dbfe20f149a142f16faaca86ca659120c
blob + 8f67d1905a83866fe30126bd867be6af9ae4680c
--- compat/landlock.c
+++ compat/landlock.c
@@ -86,7 +86,7 @@ landlock_no_fs(void)
 	fd = landlock_create_ruleset(&rattr, sizeof(rattr), 0);
 	if (fd == -1) {
 		/* this kernel doesn't have landlock built in */
-		if (errno == ENOSYS || errno == ENOTSUP)
+		if (errno == ENOSYS || errno == EOPNOTSUPP)
 			return 0;
 		return -1;
 	}