@@ -48,7 +48,7 @@ impl<T: BackEnd> Labeler<T> {
4848 /// Initialize a labeling handle to be used for lookup operations.
4949 ///
5050 /// See: `selabel_open()`.
51- #[ doc( alias( "selabel_open" ) ) ]
51+ #[ doc( alias= "selabel_open" ) ]
5252 pub fn new ( options : & [ ( c_int , * const c_void ) ] , raw_format : bool ) -> Result < Self > {
5353 use std:: convert:: TryInto ;
5454
@@ -81,7 +81,7 @@ impl<T: BackEnd> Labeler<T> {
8181 /// Obtain SELinux security context from a string label.
8282 ///
8383 /// See: `selabel_lookup()`.
84- #[ doc( alias( "selabel_lookup" ) ) ]
84+ #[ doc( alias= "selabel_lookup" ) ]
8585 pub fn look_up ( & self , key : & CStr , key_type : c_int ) -> Result < SecurityContext > {
8686 let ( proc, proc_name) : ( unsafe extern "C" fn ( _, _, _, _) -> _ , _ ) = if self . is_raw {
8787 ( selinux_sys:: selabel_lookup_raw, "selabel_lookup_raw()" )
@@ -98,7 +98,7 @@ impl<T: BackEnd> Labeler<T> {
9898 /// Return digest of spec files and list of files used.
9999 ///
100100 /// See: `selabel_digest()`.
101- #[ doc( alias( "selabel_digest" ) ) ]
101+ #[ doc( alias= "selabel_digest" ) ]
102102 pub fn digest ( & ' _ self ) -> Result < Digest < ' _ > > {
103103 let mut digest_ptr: * mut u8 = ptr:: null_mut ( ) ;
104104 let mut digest_size = 0 ;
@@ -129,7 +129,7 @@ impl<T: BackEnd> Labeler<T> {
129129 /// Print SELinux labeling statistics.
130130 ///
131131 /// See: `selabel_stats()`.
132- #[ doc( alias( "selabel_stats" ) ) ]
132+ #[ doc( alias= "selabel_stats" ) ]
133133 pub fn log_statistics ( & self ) {
134134 unsafe { selinux_sys:: selabel_stats ( self . pointer . as_ptr ( ) ) }
135135 }
@@ -147,7 +147,7 @@ impl<T: BackEnd> PartialOrd<Labeler<T>> for Labeler<T> {
147147 /// Compare this instance to another one.
148148 ///
149149 /// See: `selabel_cmp()`.
150- #[ doc( alias( "selabel_cmp" ) ) ]
150+ #[ doc( alias= "selabel_cmp" ) ]
151151 fn partial_cmp ( & self , other : & Labeler < T > ) -> Option < cmp:: Ordering > {
152152 let r = unsafe { selinux_sys:: selabel_cmp ( self . pointer . as_ptr ( ) , other. pointer . as_ptr ( ) ) } ;
153153 match r {
@@ -169,7 +169,7 @@ impl Labeler<back_end::File> {
169169 /// Return [`Labeler`] with default parameters for `selinux_restorecon()`.
170170 ///
171171 /// See: `selinux_restorecon_default_handle()`.
172- #[ doc( alias( "selinux_restorecon_default_handle" ) ) ]
172+ #[ doc( alias= "selinux_restorecon_default_handle" ) ]
173173 pub fn restorecon_default ( raw_format : bool ) -> Result < Self > {
174174 let pointer = unsafe { selinux_sys:: selinux_restorecon_default_handle ( ) } ;
175175 ptr:: NonNull :: new ( pointer)
@@ -185,7 +185,7 @@ impl Labeler<back_end::File> {
185185 /// Obtain SELinux security context from a path.
186186 ///
187187 /// See: `selabel_lookup()`.
188- #[ doc( alias( "selabel_lookup" ) ) ]
188+ #[ doc( alias= "selabel_lookup" ) ]
189189 pub fn look_up_by_path (
190190 & self ,
191191 path : impl AsRef < Path > ,
@@ -208,7 +208,7 @@ impl Labeler<back_end::File> {
208208 /// Obtain a best match SELinux security context.
209209 ///
210210 /// See: `selabel_lookup_best_match()`.
211- #[ doc( alias( "selabel_lookup_best_match" ) ) ]
211+ #[ doc( alias= "selabel_lookup_best_match" ) ]
212212 pub fn look_up_best_match_by_path (
213213 & self ,
214214 path : impl AsRef < Path > ,
@@ -263,7 +263,7 @@ impl Labeler<back_end::File> {
263263 /// Determine whether a direct or partial match is possible on a file path.
264264 ///
265265 /// See: `selabel_partial_match()`.
266- #[ doc( alias( "selabel_partial_match" ) ) ]
266+ #[ doc( alias= "selabel_partial_match" ) ]
267267 pub fn partial_match_by_path ( & self , path : impl AsRef < Path > ) -> Result < bool > {
268268 let c_path = os_str_to_c_string ( path. as_ref ( ) . as_os_str ( ) ) ?;
269269 Ok ( unsafe { selinux_sys:: selabel_partial_match ( self . pointer . as_ptr ( ) , c_path. as_ptr ( ) ) } )
@@ -273,7 +273,7 @@ impl Labeler<back_end::File> {
273273 /// to the supplied path.
274274 ///
275275 /// 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" ) ]
277277 pub fn get_digests_all_partial_matches_by_path (
278278 & self ,
279279 path : impl AsRef < Path > ,
0 commit comments