Re: [PATCH v2 1/1] libselinux: Remove trailing slash on selabel_file lookups.

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

 



On Mon, Aug 24, 2020 at 9:45 AM Chris PeBenito
<chpebeni@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Having a trailing slash on a file lookup, e.g. "/some/path/", can
> cause a different result, for example,  when file contexts are written to have
> the directory have a different label than the contents.  This is inconsistent
> with normal Linux behaviors where trailing slashes are ignored.
>
> Many callers already strip the trailing slash before the lookup or users
> revise the file contexts to work around this.  This fixes it comprehensively.
>
> v2: fix length issues
>
> Signed-off-by: Chris PeBenito <chpebeni@xxxxxxxxxxxxxxxxxxx>

Acked-by: Stephen Smalley <stephen.smalley.work@xxxxxxxxx>



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

  Powered by Linux