[arch-commits] Commit in realtime-privileges/repos (7 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 16:06:09 UTC 2020
Date: Tuesday, July 7, 2020 @ 16:06:09
Author: felixonmars
Revision: 659114
archrelease: copy trunk to community-staging-any
Added:
realtime-privileges/repos/community-staging-any/
realtime-privileges/repos/community-staging-any/40-realtime-privileges.rules
(from rev 659112, realtime-privileges/trunk/40-realtime-privileges.rules)
realtime-privileges/repos/community-staging-any/99-realtime-privileges.conf
(from rev 659113, realtime-privileges/trunk/99-realtime-privileges.conf)
realtime-privileges/repos/community-staging-any/ChangeLog
(from rev 659113, realtime-privileges/trunk/ChangeLog)
realtime-privileges/repos/community-staging-any/PKGBUILD
(from rev 659113, realtime-privileges/trunk/PKGBUILD)
realtime-privileges/repos/community-staging-any/realtime-privileges.install
(from rev 659113, realtime-privileges/trunk/realtime-privileges.install)
realtime-privileges/repos/community-staging-any/sysusers-realtime-privileges.conf
(from rev 659113, realtime-privileges/trunk/sysusers-realtime-privileges.conf)
-----------------------------------+
40-realtime-privileges.rules | 6 ++++++
99-realtime-privileges.conf | 2 ++
ChangeLog | 10 ++++++++++
PKGBUILD | 30 ++++++++++++++++++++++++++++++
realtime-privileges.install | 7 +++++++
sysusers-realtime-privileges.conf | 3 +++
6 files changed, 58 insertions(+)
Copied: realtime-privileges/repos/community-staging-any/40-realtime-privileges.rules (from rev 659112, realtime-privileges/trunk/40-realtime-privileges.rules)
===================================================================
--- community-staging-any/40-realtime-privileges.rules (rev 0)
+++ community-staging-any/40-realtime-privileges.rules 2020-07-07 16:06:09 UTC (rev 659114)
@@ -0,0 +1,6 @@
+# rw access to /dev/cpu_dma_latency to prevent CPUs from going into idle state
+KERNEL=="cpu_dma_latency", GROUP="realtime"
+# rw access to /dev/rtc0
+KERNEL=="rtc0", GROUP="realtime"
+# rw access to /dev/hpet0
+KERNEL=="hpet", GROUP="realtime"
Copied: realtime-privileges/repos/community-staging-any/99-realtime-privileges.conf (from rev 659113, realtime-privileges/trunk/99-realtime-privileges.conf)
===================================================================
--- community-staging-any/99-realtime-privileges.conf (rev 0)
+++ community-staging-any/99-realtime-privileges.conf 2020-07-07 16:06:09 UTC (rev 659114)
@@ -0,0 +1,2 @@
+ at realtime - rtprio 98
+ at realtime - memlock unlimited
Copied: realtime-privileges/repos/community-staging-any/ChangeLog (from rev 659113, realtime-privileges/trunk/ChangeLog)
===================================================================
--- community-staging-any/ChangeLog (rev 0)
+++ community-staging-any/ChangeLog 2020-07-07 16:06:09 UTC (rev 659114)
@@ -0,0 +1,10 @@
+Changes with 2:
+ * Fixed a typo in the udev rule.
+
+Changes with 1:
+ * Adding dedicated 'realtime' group using sysusers.d.
+ * Adding limits.conf drop in file. This adds rtprio 98 and memlock unlimited
+ for the realtime group.
+ * Adding access to /dev/cpu_dma_latency for group 'realtime' with the help
+ of a udev rule. This enables applications to stop the CPU from going to
+ idle states.
Copied: realtime-privileges/repos/community-staging-any/PKGBUILD (from rev 659113, realtime-privileges/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-07-07 16:06:09 UTC (rev 659114)
@@ -0,0 +1,30 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+pkgname=realtime-privileges
+pkgver=2
+pkgrel=2
+pkgdesc="Realtime privileges for users"
+arch=('any')
+url="https://wiki.archlinux.org/index.php/Realtime_process_management"
+license=('GPL')
+groups=('pro-audio' 'realtime')
+install="${pkgname}.install"
+changelog=ChangeLog
+source=("99-${pkgname}.conf"
+ "sysusers-${pkgname}.conf"
+ "40-${pkgname}.rules"
+ 'ChangeLog')
+sha512sums=('4d812d89561519fe79613d03b531408122a3ae729eba631187848c3480d6235b483102e8c647e6eb2f579293f462b0dae7f4f04d56e085063e24d69f3ed96b4a'
+ '2f4d048a3e3c6de75bb7432092e1943143507110ff33aa9f7f2ca4ed3f028536c8f910735f5218f0fa6cc89e8eae70699bcce18c0dadc07e518fc3cf33611518'
+ '9b37478e352bd27b1e8f37996306054d71fa9a0afd589bfb6c77dc59eaced25517ecc5ecaaa7aa22cb0c9a865e2579e1e279d7cbe27986c661b4eb0c48bf1b1a'
+ '11f115c77867763424074234dbe4f4e87d83e0423ed1ebf43bb279bebda8ee64f8c44589f508f72ecce4e5f4b0824188f9d30cb36a799a60f35745b534f61f06')
+
+package() {
+ # realtime group installed through sysusers.d
+ install -vDm 644 "sysusers-${pkgname}.conf" \
+ "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
+ # limits for realtime group
+ install -vDm 644 "99-${pkgname}.conf" -t "${pkgdir}/etc/security/limits.d/"
+ # udev rules, giving access to devices to realtime group
+ install -vDm 644 "40-${pkgname}.rules" -t "${pkgdir}/usr/lib/udev/rules.d/"
+ install -vDm 644 ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}
Copied: realtime-privileges/repos/community-staging-any/realtime-privileges.install (from rev 659113, realtime-privileges/trunk/realtime-privileges.install)
===================================================================
--- community-staging-any/realtime-privileges.install (rev 0)
+++ community-staging-any/realtime-privileges.install 2020-07-07 16:06:09 UTC (rev 659114)
@@ -0,0 +1,7 @@
+post_install() {
+ echo "The 'realtime' group has been created. Add your user to it and re-login to use realtime privileges."
+}
+
+post_remove() {
+ echo "Privileges for realtime have been removed. However, the group 'realtime' will remain on the system."
+}
Copied: realtime-privileges/repos/community-staging-any/sysusers-realtime-privileges.conf (from rev 659113, realtime-privileges/trunk/sysusers-realtime-privileges.conf)
===================================================================
--- community-staging-any/sysusers-realtime-privileges.conf (rev 0)
+++ community-staging-any/sysusers-realtime-privileges.conf 2020-07-07 16:06:09 UTC (rev 659114)
@@ -0,0 +1,3 @@
+# This file is part of realtime-privileges. For further information check:
+# https://wiki.archlinux.org/index.php/Realtime_process_management
+g realtime - - -
More information about the arch-commits
mailing list