File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed
nixos/modules/services/video/go2rtc Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change 55 pkgs ,
66 ...
77} :
8-
98let
109 inherit ( lib )
1110 literalExpression
2120 format = pkgs . formats . yaml { } ;
2221 configFile = format . generate "go2rtc.yaml" cfg . settings ;
2322in
24-
2523{
2624 meta . buildDocsInSandbox = false ;
2725
110108 ] ;
111109 StateDirectory = "go2rtc" ;
112110 ExecStart = "${ cfg . package } /bin/go2rtc -config ${ configFile } " ;
111+ RemoveIPC = true ;
112+ RestrictNamespaces = true ;
113+ RestrictRealtime = true ;
114+ RestrictSUIDSGID = true ;
115+ RestrictAddressFamilies = [
116+ "AF_INET"
117+ "AF_INET6"
118+ "AF_NETLINK"
119+ "AF_UNIX"
120+ ] ;
121+ SystemCallFilter = [
122+ "@system-service"
123+ "~@privileged"
124+ ] ;
125+ SystemCallArchitectures = "native" ;
126+ CapabilityBoundingSet = "" ;
127+ LockPersonality = true ;
128+ NoNewPrivileges = true ;
129+ PrivateTmp = true ;
130+ PrivateMounts = true ;
131+ ProtectClock = true ;
132+ ProtectControlGroups = true ;
133+ ProtectHome = true ;
134+ ProtectHostname = true ;
135+ ProtectKernelLogs = true ;
136+ ProtectKernelModules = true ;
137+ ProtectKernelTunables = true ;
138+ ProtectProc = "invisible" ;
139+ ProcSubset = "pid" ;
140+ ProtectSystem = "strict" ;
141+ UMask = "0077" ;
113142 } ;
114143 } ;
115144 } ;
You can’t perform that action at this time.
0 commit comments