On Mon, Aug 24, 2020 at 10:55 AM Stephen Smalley <stephen.smalley.work@xxxxxxxxx> wrote: > > 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> Applied.