[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [busybox:01238] Re: BUG? in mkswap (Re: The current status of sebusybox project)
- From: KaiGai Kohei <kaigai kaigai gr jp>
- To: busybox kaigai gr jp
- Cc: kzak redhat com, fedora-selinux-list redhat com
- Subject: Re: [busybox:01238] Re: BUG? in mkswap (Re: The current status of sebusybox project)
- Date: Sat, 13 Oct 2007 00:57:54 +0900
- 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 kaigai gr jp>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]