- snip -
> If you don't want to exit immediately, I think this logic can
be
> changed as follows:
> -------------------------------------------------------
> if (fgetfilecon(DEV, &oldcontext) < 0) {
> if (errno != ENODATA) {
> fprintf(stderr, _("%s: %s: unable to obtain selinux file label:
%s\n"),
> program_name, device_name,
> strerror(errno));
> exit(1);
> }
> if (matchpathcon(devide_name, statbuf.st_mode, &oldcontext))
> die(_("unable to create new selinux context"));
> }
> if (!(newcontext = context_new(oldcontext)))
> die(_("unable to create new selinux context"));
> -------------------------------------------------------
>
> Thanks,
Please open a bugzilla. Too easy to lease in email.
OK, I opened a report at bugzilla.
https://bugzilla.redhat.com/show_bug.cgi?id=329641
--
KaiGai Kohei <kaigai(a)kaigai.gr.jp>