mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-01 06:46:44 -04:00
unix: change Landlock type aliases to new types
Type aliases were introduced in CL 348349 and I did not notice it during the review process. The typical convention is to create new types instead. Change-Id: I4789cfc836b8612abfd791451edfd619c93d23df Reviewed-on: https://go-review.googlesource.com/c/sys/+/348450 Trust: Matt Layher <mdlayher@gmail.com> Run-TryBot: Matt Layher <mdlayher@gmail.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
+2
-2
@@ -3822,9 +3822,9 @@ const (
|
|||||||
|
|
||||||
// Landlock
|
// Landlock
|
||||||
|
|
||||||
type LandlockRulesetAttr = C.struct_landlock_ruleset_attr
|
type LandlockRulesetAttr C.struct_landlock_ruleset_attr
|
||||||
|
|
||||||
type LandlockPathBeneathAttr = C.struct_landlock_path_beneath_attr
|
type LandlockPathBeneathAttr C.struct_landlock_path_beneath_attr
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LANDLOCK_RULE_PATH_BENEATH = C.LANDLOCK_RULE_PATH_BENEATH
|
LANDLOCK_RULE_PATH_BENEATH = C.LANDLOCK_RULE_PATH_BENEATH
|
||||||
|
|||||||
@@ -3924,11 +3924,11 @@ const (
|
|||||||
NFC_SDP_ATTR_SAP = 0x2
|
NFC_SDP_ATTR_SAP = 0x2
|
||||||
)
|
)
|
||||||
|
|
||||||
type LandlockRulesetAttr = struct {
|
type LandlockRulesetAttr struct {
|
||||||
Access_fs uint64
|
Access_fs uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
type LandlockPathBeneathAttr = struct {
|
type LandlockPathBeneathAttr struct {
|
||||||
Allowed_access uint64
|
Allowed_access uint64
|
||||||
Parent_fd int32
|
Parent_fd int32
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user