From owner-svn-ports-all@freebsd.org Mon Mar 12 06:34:18 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69546F4DDFD; Mon, 12 Mar 2018 06:34:18 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 196516A3B6; Mon, 12 Mar 2018 06:34:18 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1439592; Mon, 12 Mar 2018 06:34:18 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2C6YHw8076859; Mon, 12 Mar 2018 06:34:17 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2C6YHGt076855; Mon, 12 Mar 2018 06:34:17 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201803120634.w2C6YHGt076855@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Mon, 12 Mar 2018 06:34:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r464219 - in head/sysutils: . mac_rtprio X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/sysutils: . mac_rtprio X-SVN-Commit-Revision: 464219 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2018 06:34:18 -0000 Author: tobik Date: Mon Mar 12 06:34:17 2018 New Revision: 464219 URL: https://svnweb.freebsd.org/changeset/ports/464219 Log: 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 Added: head/sysutils/mac_rtprio/ head/sysutils/mac_rtprio/Makefile (contents, props changed) head/sysutils/mac_rtprio/distinfo (contents, props changed) head/sysutils/mac_rtprio/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Mon Mar 12 06:33:30 2018 (r464218) +++ head/sysutils/Makefile Mon Mar 12 06:34:17 2018 (r464219) @@ -603,6 +603,7 @@ SUBDIR += lxsplit SUBDIR += lxtask SUBDIR += lxterminal + SUBDIR += mac_rtprio SUBDIR += magicrescue SUBDIR += manck SUBDIR += mapchan Added: head/sysutils/mac_rtprio/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/mac_rtprio/Makefile Mon Mar 12 06:34:17 2018 (r464219) @@ -0,0 +1,23 @@ +# Created by: Jov +# $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 Added: head/sysutils/mac_rtprio/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/mac_rtprio/distinfo Mon Mar 12 06:34:17 2018 (r464219) @@ -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 Added: head/sysutils/mac_rtprio/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/mac_rtprio/pkg-descr Mon Mar 12 06:34:17 2018 (r464219) @@ -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