aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-21 11:39:44 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-24 17:44:57 +0100
commita50fe2cb853022f2dd2c02fd1a230e3050bbf524 (patch)
tree9e74637ac34e43289f345ffe564ec8ab848983c5
parent8c44f9cb53eb74200ac6d25a89b4e5cf12394cdb (diff)
unit.conf: Remove unset of capabilities
Remove the unsetting of capabilities because it currently breaks the image. To be reworked. Change-Id: I69a1d9c23f463a36edebb7993aa94fae14fb60e8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--conf/afm-unit-debug.conf.in4
-rw-r--r--conf/afm-unit.conf.in4
-rw-r--r--conf/generate-unit-conf/service.inc4
3 files changed, 6 insertions, 6 deletions
diff --git a/conf/afm-unit-debug.conf.in b/conf/afm-unit-debug.conf.in
index 8e6fbed..a770fbc 100644
--- a/conf/afm-unit-debug.conf.in
+++ b/conf/afm-unit-debug.conf.in
@@ -122,8 +122,8 @@ SuccessExitStatus=0 SIGKILL
#PAMName=su
User=%i
Slice=user-%i.slice
-CapabilityBoundingSet=
-AmbientCapabilities=
+#CapabilityBoundingSet=
+#AmbientCapabilities=
{{#required-permission.urn:AGL:permission::platform:no-oom}}OOMScoreAdjust=-500{{/required-permission.urn:AGL:permission::platform:no-oom}}
{{#required-permission.urn:AGL:permission::partner:real-time}}IOSchedulingClass=realtime{{/required-permission.urn:AGL:permission::partner:real-time}}
{{#required-permission.urn:AGL:permission::public:display}}SupplementaryGroups=display{{/required-permission.urn:AGL:permission::public:display}}
diff --git a/conf/afm-unit.conf.in b/conf/afm-unit.conf.in
index 1e95769..11ad15a 100644
--- a/conf/afm-unit.conf.in
+++ b/conf/afm-unit.conf.in
@@ -122,8 +122,8 @@ SuccessExitStatus=0 SIGKILL
#PAMName=su
User=%i
Slice=user-%i.slice
-CapabilityBoundingSet=
-AmbientCapabilities=
+#CapabilityBoundingSet=
+#AmbientCapabilities=
{{#required-permission.urn:AGL:permission::platform:no-oom}}OOMScoreAdjust=-500{{/required-permission.urn:AGL:permission::platform:no-oom}}
{{#required-permission.urn:AGL:permission::partner:real-time}}IOSchedulingClass=realtime{{/required-permission.urn:AGL:permission::partner:real-time}}
{{#required-permission.urn:AGL:permission::public:display}}SupplementaryGroups=display{{/required-permission.urn:AGL:permission::public:display}}
diff --git a/conf/generate-unit-conf/service.inc b/conf/generate-unit-conf/service.inc
index f2341d1..21e16e3 100644
--- a/conf/generate-unit-conf/service.inc
+++ b/conf/generate-unit-conf/service.inc
@@ -53,8 +53,8 @@ SuccessExitStatus=0 SIGKILL
User=%i
Slice=user-%i.slice
-CapabilityBoundingSet=
-AmbientCapabilities=
+#CapabilityBoundingSet=
+#AmbientCapabilities=
ON_PERM(:platform:no-oom, OOMScoreAdjust=-500)
ON_PERM(:partner:real-time, IOSchedulingClass=realtime)