Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
jobs: hide jails and secure level restrictions behind HAVE_CHFLAGSAT
Baptiste Daroussin committed 1 month ago
commit 4ca226d8d7a20d22b77c6076166467642ef735aa
parent bdab728
1 file changed +2 -0
modified libpkg/pkg_jobs.c
@@ -2286,6 +2286,7 @@ pkg_jobs_check_chflags(struct pkg_jobs *j)
	int restriction;
	u_long mask;

+
#ifdef HAVE_CHFLAGSAT
	restriction = pkg_jobs_chflags_restricted();
	if (restriction == 0)
		return (EPKG_OK);
@@ -2327,6 +2328,7 @@ restricted:
			    p->name, 1);
		return (EPKG_FATAL);
	}
+
#endif
	return (EPKG_OK);
}