Interesting, I will look into both of those on Monday.
Thanks,
Justin
On Sat, Jan 16, 2016 at 11:08 AM, Chris Murphy
<chrismurphy(a)fedoraproject.org> wrote:
>> Yes. Is the line malformed? It looks different than line 5 which works.
>>
>> 5 COUNT=$(find /sys -type f -perm 666 | ./ignore-files.sh | wc -l)
>>
>> 9 find /sys -type f -perm 666 | ignore-files.sh
>>
>> I'm going to guess the script is looking in kernel-tests for ignore-files.sh
because
>> of this, rather than in the same directory as runtest.sh. If I run the command
manually:
>>
>> [root@f23s ~]# find /sys -type f -perm 666 |
>> /home/chris/kernel-tests/default/sysfs-perms/ignore-files.sh
>> /sys/kernel/debug/btrfs/test
>>
>> So it looks like btrfs/test might need to be added to ignore-files.sh and line 9
should be
>> ./ignore-files.sh (?)
>
> I tried this change on a 2nd system:
> - find /sys -type f -perm 666 | ignore-files.s
> + find /sys -type f -perm 666 | ./ignore-files.s
>
> And I no longer get the './runtest.sh: line 9: ignore-files.sh: command not
found' message. But I do get an extra result compared to the 1st system:
>
> [root@f23m sysfs-perms]# sh runtest.sh
> Found world-writable files in sysfs.
> /sys/kernel/debug/ieee80211/phy0/rc/fixed_rate_idx
> /sys/kernel/debug/btrfs/test
>
>
> Chris Murphy
> _______________________________________________
> kernel mailing list
> kernel(a)lists.fedoraproject.org
>
http://lists.fedoraproject.org/admin/lists/kernel@lists.fedoraproject.org