[busybox:01238] Re: BUG? in mkswap (Re: The current status of sebusybox project)
KaiGai Kohei
kaigai at kaigai.gr.jp
Fri Oct 12 15:57:54 UTC 2007
- 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 at kaigai.gr.jp>
More information about the fedora-selinux-list
mailing list