Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F98672043
D31349.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D31349.diff
View Options
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master
--- a/sys/kern/syscalls.master
+++ b/sys/kern/syscalls.master
@@ -17,6 +17,7 @@
; COMPAT7, COMPAT11, COMPAT12, NODEF, NOARGS, NOPROTO, NOSTD
; The COMPAT* options may be combined with one or more NO*
; options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
+; The CAPENABLED option may be ORed into a type.
; name pseudo-prototype of syscall routine
; If one of the following alts is different, then all appear:
; altname name of system call if different
@@ -47,6 +48,7 @@
; function prototype in sys/sysproto.h. Does add a
; definition to syscall.h besides adding a sysent.
; NOTSTATIC syscall is loadable
+; CAPENABLED syscall is allowed in capability mode
; annotations:
; SAL 2.0 annotations are used to specify how system calls treat
diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua
--- a/sys/tools/makesyscalls.lua
+++ b/sys/tools/makesyscalls.lua
@@ -151,6 +151,7 @@
NOPROTO = 0x00000040,
NOSTD = 0x00000080,
NOTSTATIC = 0x00000100,
+ CAPENABLED = 0x00000200,
-- Compat flags start from here. We have plenty of space.
}
@@ -1059,7 +1060,8 @@
-- If applicable; strip the ABI prefix from the name
local stripped_name = strip_abi_prefix(funcname)
- if config["capenabled"][funcname] ~= nil or
+ if flags & known_flags['CAPENABLED'] ~= 0 or
+ config["capenabled"][funcname] ~= nil or
config["capenabled"][stripped_name] ~= nil then
sysflags = "SYF_CAPENABLED"
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 5, 7:29 AM (22 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13623129
Default Alt Text
D31349.diff (1 KB)
Attached To
Mode
D31349: makesyscalls.lua: add a CAPENABLED flag
Attached
Detach File
Event Timeline
Log In to Comment