summaryrefslogtreecommitdiffstats
path: root/privdemo-model.lua
blob: 7103e2d2411f5f64171bee1724871e67a24647ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-- ipsec controller

module(..., package.seeall)

require("posix")

---------------------------------------------------------
-- privileged funcs

priv = {}
function priv.getuid()
	return posix.getpid().euid
end



-------------------------------------------------------------
-- Unprivileged funcs

function getuid(self)
	return posix.getpid().euid
end