mirror of
https://github.com/20kdc/OC-KittenOS.git
synced 2024-11-23 10:58:06 +11:00
Fix service autostart hang if a service was already active
This commit is contained in:
parent
0b918437d0
commit
bed9f55d70
@ -268,8 +268,7 @@ rootAccess.securityPolicy = function (pid, proc, perm, req)
|
||||
secPolicyStage2(pid, proc, perm, req)
|
||||
end
|
||||
-- Do we need to start it?
|
||||
if perm:sub(1, 6) == "x.svc." then
|
||||
if not neo.usAccessExists(perm) then
|
||||
if perm:sub(1, 6) == "x.svc." and not neo.usAccessExists(perm) then
|
||||
local appAct = perm:sub(7)
|
||||
local paP = appAct:match(endAcPattern)
|
||||
if paP then
|
||||
@ -296,7 +295,6 @@ rootAccess.securityPolicy = function (pid, proc, perm, req)
|
||||
end
|
||||
table.insert(todo, f)
|
||||
return
|
||||
end
|
||||
else
|
||||
finish()
|
||||
end
|
||||
|
@ -335,9 +335,7 @@ baseProcNeo = {
|
||||
listLibs = lister("libs/"),
|
||||
usAccessExists = function (accessName)
|
||||
ensureType(accessName, "string")
|
||||
if accesses[accessName] then
|
||||
return true
|
||||
end
|
||||
return not not accesses[accessName]
|
||||
end,
|
||||
totalIdleTime = function () return idleTime end,
|
||||
ensurePath = ensurePath,
|
||||
|
Loading…
Reference in New Issue
Block a user