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:
Matt Layher
2021-09-08 11:49:12 -04:00
parent c212e73226
commit a851e7ddee
2 changed files with 4 additions and 4 deletions

View File

@@ -3822,9 +3822,9 @@ const (
// 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 (
LANDLOCK_RULE_PATH_BENEATH = C.LANDLOCK_RULE_PATH_BENEATH

View File

@@ -3924,11 +3924,11 @@ const (
NFC_SDP_ATTR_SAP = 0x2
)
type LandlockRulesetAttr = struct {
type LandlockRulesetAttr struct {
Access_fs uint64
}
type LandlockPathBeneathAttr = struct {
type LandlockPathBeneathAttr struct {
Allowed_access uint64
Parent_fd int32
}