Re: [PATCH] policycoreutils: fix inaccurate description in sestatus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dominick Grift <dominick.grift@xxxxxxxxxxx> writes:

> strdup(selinux_policy_root()) does not return a path that can be used to derive "Loaded policy name"
> instead if returns a path that can be used to derive "Policy name from config file".

Even though this seems like a nit, this issue was a bit embarrasing for
me in one of my video tutorials:

https://youtu.be/JsD8GLx_ZKA?t=1965

>
> Signed-off-by: Dominick Grift <dominick.grift@xxxxxxxxxxx>
> ---
>  policycoreutils/sestatus/sestatus.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/policycoreutils/sestatus/sestatus.c b/policycoreutils/sestatus/sestatus.c
> index b37f0353..8b03b028 100644
> --- a/policycoreutils/sestatus/sestatus.c
> +++ b/policycoreutils/sestatus/sestatus.c
> @@ -268,7 +268,7 @@ int main(int argc, char **argv)
>  	free(root_path);
>  
>  	/* Dump all the path information */
> -	printf_tab("Loaded policy name:");
> +	printf_tab("Policy name from config file:");
>  	pol_path = strdup(selinux_policy_root());
>  	if (pol_path) {
>  		pol_name = basename(pol_path);

-- 
gpg --locate-keys dominick.grift@xxxxxxxxxxx
Key fingerprint = FCD2 3660 5D6B 9D27 7FC6  E0FF DA7E 521F 10F6 4098
https://sks-keyservers.net/pks/lookup?op=get&search=0xDA7E521F10F64098
Dominick Grift



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux