1
0
mirror of https://github.com/20kdc/OC-KittenOS.git synced 2024-11-23 10:58:06 +11:00

Consider 'tablet' component & tablet_use safe in secpolicy, fix incorrect documentation on k.computer

This commit is contained in:
20kdc 2019-01-02 15:27:23 +00:00
parent 0d9583fcff
commit 7307eb30a4
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ local function actualPolicy(pkg, pid, perm, matchesSvc)
return "allow" return "allow"
end end
-- These signals are harmless, though they identify HW (as does everything in OC...) -- These signals are harmless, though they identify HW (as does everything in OC...)
if perm == "s.h.component_added" or perm == "s.h.component_removed" then if perm == "s.h.component_added" or perm == "s.h.component_removed" or perm == "s.h.tablet_use" or perm == "c.tablet" then
return "allow" return "allow"
end end
if matchesSvc("r.", pkg, perm) then if matchesSvc("r.", pkg, perm) then

View File

@ -53,9 +53,9 @@ Here, "*" means that everything after
program to start up. program to start up.
"k.computer": The "computer" table, "k.computer": The "computer" table,
with wrapMeta applied, with wrapMeta applied.
pullSignal removed, The security check may be aliased to
and also pushSignal. the "k.root" permission in future.
"k.kill": function (pid) to kill any "k.kill": function (pid) to kill any
process on the system. process on the system.