@@ -48,7 +48,7 @@ impl<T: BackEnd> Labeler<T> {
48
48
/// Initialize a labeling handle to be used for lookup operations.
49
49
///
50
50
/// See: `selabel_open()`.
51
- #[ doc( alias( "selabel_open" ) ) ]
51
+ #[ doc( alias= "selabel_open" ) ]
52
52
pub fn new ( options : & [ ( c_int , * const c_void ) ] , raw_format : bool ) -> Result < Self > {
53
53
use std:: convert:: TryInto ;
54
54
@@ -81,7 +81,7 @@ impl<T: BackEnd> Labeler<T> {
81
81
/// Obtain SELinux security context from a string label.
82
82
///
83
83
/// See: `selabel_lookup()`.
84
- #[ doc( alias( "selabel_lookup" ) ) ]
84
+ #[ doc( alias= "selabel_lookup" ) ]
85
85
pub fn look_up ( & self , key : & CStr , key_type : c_int ) -> Result < SecurityContext > {
86
86
let ( proc, proc_name) : ( unsafe extern "C" fn ( _, _, _, _) -> _ , _ ) = if self . is_raw {
87
87
( selinux_sys:: selabel_lookup_raw, "selabel_lookup_raw()" )
@@ -98,7 +98,7 @@ impl<T: BackEnd> Labeler<T> {
98
98
/// Return digest of spec files and list of files used.
99
99
///
100
100
/// See: `selabel_digest()`.
101
- #[ doc( alias( "selabel_digest" ) ) ]
101
+ #[ doc( alias= "selabel_digest" ) ]
102
102
pub fn digest ( & ' _ self ) -> Result < Digest < ' _ > > {
103
103
let mut digest_ptr: * mut u8 = ptr:: null_mut ( ) ;
104
104
let mut digest_size = 0 ;
@@ -129,7 +129,7 @@ impl<T: BackEnd> Labeler<T> {
129
129
/// Print SELinux labeling statistics.
130
130
///
131
131
/// See: `selabel_stats()`.
132
- #[ doc( alias( "selabel_stats" ) ) ]
132
+ #[ doc( alias= "selabel_stats" ) ]
133
133
pub fn log_statistics ( & self ) {
134
134
unsafe { selinux_sys:: selabel_stats ( self . pointer . as_ptr ( ) ) }
135
135
}
@@ -147,7 +147,7 @@ impl<T: BackEnd> PartialOrd<Labeler<T>> for Labeler<T> {
147
147
/// Compare this instance to another one.
148
148
///
149
149
/// See: `selabel_cmp()`.
150
- #[ doc( alias( "selabel_cmp" ) ) ]
150
+ #[ doc( alias= "selabel_cmp" ) ]
151
151
fn partial_cmp ( & self , other : & Labeler < T > ) -> Option < cmp:: Ordering > {
152
152
let r = unsafe { selinux_sys:: selabel_cmp ( self . pointer . as_ptr ( ) , other. pointer . as_ptr ( ) ) } ;
153
153
match r {
@@ -169,7 +169,7 @@ impl Labeler<back_end::File> {
169
169
/// Return [`Labeler`] with default parameters for `selinux_restorecon()`.
170
170
///
171
171
/// See: `selinux_restorecon_default_handle()`.
172
- #[ doc( alias( "selinux_restorecon_default_handle" ) ) ]
172
+ #[ doc( alias= "selinux_restorecon_default_handle" ) ]
173
173
pub fn restorecon_default ( raw_format : bool ) -> Result < Self > {
174
174
let pointer = unsafe { selinux_sys:: selinux_restorecon_default_handle ( ) } ;
175
175
ptr:: NonNull :: new ( pointer)
@@ -185,7 +185,7 @@ impl Labeler<back_end::File> {
185
185
/// Obtain SELinux security context from a path.
186
186
///
187
187
/// See: `selabel_lookup()`.
188
- #[ doc( alias( "selabel_lookup" ) ) ]
188
+ #[ doc( alias= "selabel_lookup" ) ]
189
189
pub fn look_up_by_path (
190
190
& self ,
191
191
path : impl AsRef < Path > ,
@@ -208,7 +208,7 @@ impl Labeler<back_end::File> {
208
208
/// Obtain a best match SELinux security context.
209
209
///
210
210
/// See: `selabel_lookup_best_match()`.
211
- #[ doc( alias( "selabel_lookup_best_match" ) ) ]
211
+ #[ doc( alias= "selabel_lookup_best_match" ) ]
212
212
pub fn look_up_best_match_by_path (
213
213
& self ,
214
214
path : impl AsRef < Path > ,
@@ -263,7 +263,7 @@ impl Labeler<back_end::File> {
263
263
/// Determine whether a direct or partial match is possible on a file path.
264
264
///
265
265
/// See: `selabel_partial_match()`.
266
- #[ doc( alias( "selabel_partial_match" ) ) ]
266
+ #[ doc( alias= "selabel_partial_match" ) ]
267
267
pub fn partial_match_by_path ( & self , path : impl AsRef < Path > ) -> Result < bool > {
268
268
let c_path = os_str_to_c_string ( path. as_ref ( ) . as_os_str ( ) ) ?;
269
269
Ok ( unsafe { selinux_sys:: selabel_partial_match ( self . pointer . as_ptr ( ) , c_path. as_ptr ( ) ) } )
@@ -273,7 +273,7 @@ impl Labeler<back_end::File> {
273
273
/// to the supplied path.
274
274
///
275
275
/// See: `selabel_get_digests_all_partial_matches()`.
276
- #[ doc( alias( "selabel_get_digests_all_partial_matches" ) ) ]
276
+ #[ doc( alias= "selabel_get_digests_all_partial_matches" ) ]
277
277
pub fn get_digests_all_partial_matches_by_path (
278
278
& self ,
279
279
path : impl AsRef < Path > ,
0 commit comments