libselinux: Document thread caveat for security_compute_av.3
PATCH 1/1 libselinux: Document thread caveat for security_compute_av.3
Move a similar paragraph for selinux_status_open.3 to a CAVEATS section.
See discussion at https://github.com/SELinuxProject/selinux/issues/287
Signed-off-by Thiébaud Weksteen <[email protected]>
--- libselinux/man/man3/security_compute_av.3 | 5 +++++ libselinux/man/man3/selinux_status_open.3 | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-)
libselinux/man/man3/security_compute_av.3 +5 -0
@@ -181,6 +181,11 @@ function. .SH "RETURN VALUE" Returns zero on success or \-1 on error. . +.SH "CAVEATS" +.sp +These functions are not thread-safe, you have to protect them from +concurrent calls using exclusive locks when multiple threads are executing. +. .SH "SEE ALSO" .BR string_to_security_class (3), .BR string_to_av_perm (3),
libselinux/man/man3/selinux_status_open.3 +5 -4
@@ -82,10 +82,6 @@ Thus, don't use this value to know actual times of policy reloaded. .BR selinux_status_deny_unknown () returns 0 if SELinux treats policy queries on undefined object classes or permissions as being allowed, 1 if such queries are denied, or \-1 on error. -.sp -Also note that these interfaces are not thread-safe, so you have to protect -them from concurrent calls using exclusive locks when multiple threads are -performing. . .SH "RETURN VALUE" .BR selinux_status_open ()
@@ -96,6 +92,11 @@ On error, \-1 shall be returned. Any other functions with a return value shall return its characteristic value as described above, or \-1 on errors. . +.SH "CAVEATS" +.sp +These functions are not thread-safe, you have to protect them from +concurrent calls using exclusive locks when multiple threads are executing. +. .SH "SEE ALSO" .ad l .nh
Signature · 1 line
2.50.0.rc0.642.g800a2b2222-goog
Quoted 6 lines · Thiébaud Weksteen
Move a similar paragraph for selinux_status_open.3 to a CAVEATS section.
See discussion at https://github.com/SELinuxProject/selinux/issues/287
Signed-off-by Thiébaud Weksteen <[email protected]>
Acked-by James Carter <[email protected]>
Quoted 52 lines
--- libselinux/man/man3/security_compute_av.3 | 5 +++++ libselinux/man/man3/selinux_status_open.3 | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-)libselinux/man/man3/security_compute_av.3 +5
-0@@ -181,6 +181,11 @@ function. .SH "RETURN VALUE" Returns zero on success or \-1 on error. . +.SH "CAVEATS" +.sp +These functions are not thread-safe, you have to protect them from +concurrent calls using exclusive locks when multiple threads are executing. +. .SH "SEE ALSO" .BR string_to_security_class (3), .BR string_to_av_perm (3),libselinux/man/man3/selinux_status_open.3 +5
-5@@ -82,10 +82,6 @@ Thus, don't use this value to know actual times of policy reloaded. .BR selinux_status_deny_unknown () returns 0 if SELinux treats policy queries on undefined object classes or permissions as being allowed, 1 if such queries are denied, or \-1 on error. -.sp -Also note that these interfaces are not thread-safe, so you have to protect -them from concurrent calls using exclusive locks when multiple threads are -performing. . .SH "RETURN VALUE" .BR selinux_status_open ()@@ -96,6 +92,11 @@ On error, \-1 shall be returned. Any other functions with a return value shall return its characteristic value as described above, or \-1 on errors. . +.SH "CAVEATS" +.sp +These functions are not thread-safe, you have to protect them from +concurrent calls using exclusive locks when multiple threads are executing. +. .SH "SEE ALSO" .ad l .nh --2.50.0.rc0.642.g800a2b2222-goog
Quoted 10 lines · James Carter
Quoted 6 lines · Thiébaud Weksteen
Move a similar paragraph for selinux_status_open.3 to a CAVEATS section.
See discussion at https://github.com/SELinuxProject/selinux/issues/287
Signed-off-by Thiébaud Weksteen <[email protected]>Acked-by James Carter <[email protected]>
Merged.
Thanks,
Jim
Quoted 53 lines
Quoted 53 lines
--- libselinux/man/man3/security_compute_av.3 | 5 +++++ libselinux/man/man3/selinux_status_open.3 | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-)libselinux/man/man3/security_compute_av.3 +5
-0@@ -181,6 +181,11 @@ function. .SH "RETURN VALUE" Returns zero on success or \-1 on error. . +.SH "CAVEATS" +.sp +These functions are not thread-safe, you have to protect them from +concurrent calls using exclusive locks when multiple threads are executing. +. .SH "SEE ALSO" .BR string_to_security_class (3), .BR string_to_av_perm (3),libselinux/man/man3/selinux_status_open.3 +5
-5@@ -82,10 +82,6 @@ Thus, don't use this value to know actual times of policy reloaded. .BR selinux_status_deny_unknown () returns 0 if SELinux treats policy queries on undefined object classes or permissions as being allowed, 1 if such queries are denied, or \-1 on error. -.sp -Also note that these interfaces are not thread-safe, so you have to protect -them from concurrent calls using exclusive locks when multiple threads are -performing. . .SH "RETURN VALUE" .BR selinux_status_open ()@@ -96,6 +92,11 @@ On error, \-1 shall be returned. Any other functions with a return value shall return its characteristic value as described above, or \-1 on errors. . +.SH "CAVEATS" +.sp +These functions are not thread-safe, you have to protect them from +concurrent calls using exclusive locks when multiple threads are executing. +. .SH "SEE ALSO" .ad l .nh --2.50.0.rc0.642.g800a2b2222-goog