Wind River Support Network

HomeDefectsLIN6-10296
Fixed

LIN6-10296 : base-files package setting incorrect permissions on /usr/src

Created: Sep 9, 2015    Updated: Dec 3, 2018
Resolved Date: Sep 17, 2015
Found In Version: 6.0.0.17
Fix Version: 6.0.0.25
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

Typically /usr/src has the following permissions:

drwxr-xr-x  72 root root  4096 Sep  7 10:19 src/

But the base-files package is setting them like this:

drwxr-sr-x  2 root root  4096 Sep  7 10:59 src

Note the "group" permissions are r-s instead of r-x.

Steps to Reproduce

$ configure --enable-board=intel-x86-64 --enable-rootfs=glibc_std --enable-kernel=preempt_rt --with-rcpl-version=0017

$ make fs

Start target.

root@qemu0:~# ls -l /usr
total 76
drwxr-xr-x  2 root root 28672 Sep  9 10:38 bin
drwxr-xr-x  2 root root  4096 Sep  7 10:59 games
drwxr-xr-x  3 root root  4096 Sep  9 10:33 include
drwxr-xr-x 25 root root 12288 Sep  9 10:38 lib64
drwxr-xr-x  4 root root  4096 Sep  9 10:34 libexec
drwxr-xr-x  2 root root 12288 Sep  9 10:38 sbin
drwxr-xr-x 26 root root  4096 Sep  8 08:54 share
drwxr-sr-x  2 root root  4096 Sep  7 10:59 src
drwxr-xr-x  3 root root  4096 Sep  9 10:33 x86_64-wrs-linux

Find the source package:

root@qemu0:~# rpm -qf /usr/src/
base-files-3.0.14-r73.0.intel_x86_64

Verify package is the culprit:

root@qemu0:~# rpm -qlv base-files | grep /usr/src
drwxr-sr-x    2 root    root                0 Sep  7 10:59 /usr/src

Other Downloads


Live chat
Online