aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2018-03-12 14:34:17 +0800
committertobik <tobik@FreeBSD.org>2018-03-12 14:34:17 +0800
commit372a7a84389e634ec9f3c0f81146251993f2c9d0 (patch)
tree87f6f4ebbf28680c03c45a94b15ef7fdd83a0188
parent2f2d42bc354fb5dc9e8d1e8371e9c21d5729d1b5 (diff)
downloadfreebsd-ports-gnome-372a7a84389e634ec9f3c0f81146251993f2c9d0.tar.gz
freebsd-ports-gnome-372a7a84389e634ec9f3c0f81146251993f2c9d0.tar.zst
freebsd-ports-gnome-372a7a84389e634ec9f3c0f81146251993f2c9d0.zip
New port: sysutils/mac_rtprio
Simple MAC framework policy to manage access for setting realtime priorities by selected GID.Running kldload mac_rtprio.ko to load the kernel module. The load action require root permissions. Set GID that should be able to change realtime priorities: sysctl security.mac.rtprio.gid=1001 and enable enforcing: sysctl security.mac.rtprio.enabled=1 WWW: https://github.com/pbiernacki/mac_rtprio PR: 219377 Submitted by: amutu@amutu.com Reviewed by: bapt
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/mac_rtprio/Makefile23
-rw-r--r--sysutils/mac_rtprio/distinfo3
-rw-r--r--sysutils/mac_rtprio/pkg-descr9
4 files changed, 36 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index a9ac9cc08556..59c1a0a07919 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -603,6 +603,7 @@
SUBDIR += lxsplit
SUBDIR += lxtask
SUBDIR += lxterminal
+ SUBDIR += mac_rtprio
SUBDIR += magicrescue
SUBDIR += manck
SUBDIR += mapchan
diff --git a/sysutils/mac_rtprio/Makefile b/sysutils/mac_rtprio/Makefile
new file mode 100644
index 000000000000..d0f3a439693d
--- /dev/null
+++ b/sysutils/mac_rtprio/Makefile
@@ -0,0 +1,23 @@
+# Created by: Jov <amutu@amutu.com>
+# $FreeBSD$
+
+PORTNAME= mac_rtprio
+DISTVERSION= g20170417
+CATEGORIES= sysutils
+PKGNAMESUFFIX= -kmod
+
+MAINTAINER= amutu@amutu.com
+COMMENT= Simple MAC framework policy to manage access for setting realtime priorities by selected GID
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= kmod uidfix
+
+USE_GITHUB= yes
+GH_ACCOUNT= pbiernacki
+GH_TAGNAME= 3ace584
+
+PLIST_FILES= ${KMODDIR}/mac_rtprio.ko
+
+.include <bsd.port.mk>
diff --git a/sysutils/mac_rtprio/distinfo b/sysutils/mac_rtprio/distinfo
new file mode 100644
index 000000000000..12e77db7edb1
--- /dev/null
+++ b/sysutils/mac_rtprio/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1495108310
+SHA256 (pbiernacki-mac_rtprio-g20170417-3ace584_GH0.tar.gz) = 2d3dae36281b3090b61f326ee9605b4d4e5b2dab0e60abe08576bf10eb450091
+SIZE (pbiernacki-mac_rtprio-g20170417-3ace584_GH0.tar.gz) = 1904
diff --git a/sysutils/mac_rtprio/pkg-descr b/sysutils/mac_rtprio/pkg-descr
new file mode 100644
index 000000000000..202392012bc6
--- /dev/null
+++ b/sysutils/mac_rtprio/pkg-descr
@@ -0,0 +1,9 @@
+Simple MAC framework policy to manage access for setting realtime priorities by
+selected GID.Running kldload mac_rtprio.ko to load the kernel module. The load
+action require root permissions. Set GID that should be able to change realtime
+priorities:
+ sysctl security.mac.rtprio.gid=1001
+and enable enforcing:
+ sysctl security.mac.rtprio.enabled=1
+
+WWW: https://github.com/pbiernacki/mac_rtprio