[automated-testing] mknod is failing while creating character file

Tirumala Satya Prasad Desala tdesala at redhat.com
Thu Jun 21 06:22:29 UTC 2018


Hi,

SELinux blocks mknod file creation if the bricks are not correctly labeled.

Command to list the bricks with label: "ls -ldZ /<brick_path>"

It should have following:
drwxr-xr-x. root root system_u:object_r:glusterd_brick_t:s0 /<brick_path>

Regards,
Prasad

On Thu, Jun 21, 2018 at 11:37 AM, Nigel Babu <nigelb at redhat.com> wrote:

> Huh. This is strange. I'll test this out in a machine later today and let
> you know how it goes. This is weird, since you're already running as root.
>
> On Thu, Jun 21, 2018 at 10:25 AM Mohit Agrawal <moagrawa at redhat.com>
> wrote:
>
>> Hi Nigel,
>>
>> One of my glusto test case i am getting permission denied error at the
>> time of creating character file by test case, the same test case is working
>> on my vm
>> environment.
>>
>>  Can you please confirm could it be specific to infrastructure issue, I
>> have checked
>>  log also, in log also it is showing sys_mknod is failing with permission
>> denied.
>>
>>  For more please refer below
>>  https://ci.centos.org/job/gluster_glusto-patch-check/
>> 467/artifact/glustomain.log
>>
>>  the command is failing
>>
>> mknod /mnt/testvol_distributed-ispersed_glusterfs/special_a c 1 2
>>
>>
>> Regards
>>
>> Mohit Agrawal
>>
>
>
> --
> nigelb
>
> _______________________________________________
> automated-testing mailing list
> automated-testing at gluster.org
> http://lists.gluster.org/mailman/listinfo/automated-testing
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/automated-testing/attachments/20180621/d5dae881/attachment.html>


More information about the automated-testing mailing list