Please help me in resolving this issue

Srinivasa Rao Ragolu sragolu at mvista.com
Tue Aug 18 13:17:08 UTC 2015


Hi Daniel,

Thanks for quick reply. Please find first time boot log with lableling and
reboot.

Also find second time boot log when I created /.autorelablel.

Somehow I could not able to login as root.

Your help is really appriciated.

Thanks,
Srinivas.

On Tue, Aug 18, 2015 at 6:16 PM, Daniel J Walsh <dwalsh at redhat.com> wrote:

> Looks like you have a labeling issue.
>
> touch /.autorelabel; reboot
>
> Should fix the issues.
>
>
>
> On 08/18/2015 04:53 AM, Srinivasa Rao Ragolu wrote:
>
> Hi All,
>
> I have very new to selinux. Today I have ported selinux to my embedded
> platform with targeted policy+enforcing.
>
> When I try to boot, it completes labeling filesystem. But I could not able
> to login using root.. See my error log...
>
> *arm-cortex-a15 login: root*
> *Last login: Tue Aug 18 11:36:58 UTC 2015 on console*
> *Would you like to enter a security context? [N]  Y*
> *role: unconfined_r*
> *level: s0*
> *[ 1252.885468] type=1400 audit(1439898856.140:13): avc:  denied  {
> transition } for  pid=1120 comm="login" path="/bin/bash" dev="mmcblk0"
> ino=58115 scontext=system_u:system_r:init_t:s0
> tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=process*
> *[ 1252.887219] type=1400 audit(1439898856.140:14): avc:  denied  {
> transition } for  pid=1120 comm="login" path="/bin/bash" dev="mmcblk0"
> ino=58115 scontext=system_u:system_r:init_t:s0
> tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=process*
> *Cannot execute /bin/sh: Permission denied*
>
> *MontaVista Carrier Grade Linux 7.0.0 arm-cortex-a15 /dev/console*
>
> *arm-cortex-a15 login:*
>
> Please help me.. How can I solve this issue and achieve normal boot.
>
>
> Thanks,
> Srinivas.
>
>
> --
> selinux mailing listselinux at lists.fedoraproject.orghttps://admin.fedoraproject.org/mailman/listinfo/selinux
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/selinux/attachments/20150818/7a44fa01/attachment-0001.html>
-------------- next part --------------
srinivas at srinivas:~/images$ qemu-system-arm -M vexpress-a9 -kernel ./zImage -serial stdio -m 1024 -append 'root=/dev/mmcblk0 rw mem=1024M raid=noautodetect rootwait console=ttyAMA0 devtmpfs.mount=0 security=selinux' -sd default-image-arm-cortex-a15-20150818125815.rootfs.ext2 -net nic -net tap,ifname=tap0,script=no,downscript=no
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.65.cge-rt68 (jc at nate) (gcc version 4.7.0 (MontaVista Linux G++ 4.7-150206215610) ) #1 SMP PREEMPT Thu Aug 13 17:51:56 IST 2015
[    0.000000] CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: ARM-Versatile Express
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ms
[    0.000000] PERCPU: Embedded 8 pages/cpu @80f6c000 s9152 r8192 d15424 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
[    0.000000] Kernel command line: root=/dev/mmcblk0 rw mem=1024M raid=noautodetect rootwait console=ttyAMA0 devtmpfs.mount=0 security=selinux
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] allocated 2097152 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 1029912k/1029912k available, 18664k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x805050a8   (5109 kB)
[    0.000000]       .init : 0x806c9000 - 0x806fe3c0   ( 213 kB)
[    0.000000]       .data : 0x80700000 - 0x80736680   ( 218 kB)
[    0.000000]        .bss : 0x80736680 - 0x80765484   ( 188 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=5 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] smp_twd: clock not found -2
[    0.000000] Console: colour dummy device 80x30
[    0.073470] Calibrating delay loop... 705.33 BogoMIPS (lpj=3526656)
[    0.320992] pid_max: default: 32768 minimum: 501
[    0.321973] Security Framework initialized
[    0.322937] SELinux:  Initializing.
[    0.323563] Mount-cache hash table entries: 512
[    0.332904] Initializing cgroup subsys memory
[    0.333451] Initializing cgroup subsys devices
[    0.333588] Initializing cgroup subsys freezer
[    0.333665] Initializing cgroup subsys net_cls
[    0.333717] Initializing cgroup subsys blkio
[    0.333767] Initializing cgroup subsys perf_event
[    0.333843] Initializing cgroup subsys net_prio
[    0.334224] CPU: Testing write buffer coherency: ok
[    0.343530] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.343732] Setting up static identity map for 0x80504328 - 0x80504380
[    0.431584] Brought up 1 CPUs
[    0.431968] SMP: Total of 1 processors activated (705.33 BogoMIPS).
[    0.432196] CPU: All CPU(s) started in SVC mode.
[    0.451624] devtmpfs: initialized
[    0.473339] regulator-dummy: no parameters
[    0.475931] NET: Registered protocol family 16
[    0.478023] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.504332] L310 cache controller enabled
[    0.504387] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x02420000, Cache size: 131072 B
[    0.511376] hw-breakpoint: debug architecture 0x0 unsupported.
[    0.511474] Serial: AMBA PL011 UART driver
[    0.512638] mb:uart0: ttyAMA0 at MMIO 0x10009000 (irq = 37) is a PL011 rev1
[    0.532585] console [ttyAMA0] enabled
[    0.536383] mb:uart1: ttyAMA1 at MMIO 0x1000a000 (irq = 38) is a PL011 rev1
[    0.537728] mb:uart2: ttyAMA2 at MMIO 0x1000b000 (irq = 39) is a PL011 rev1
[    0.539035] mb:uart3: ttyAMA3 at MMIO 0x1000c000 (irq = 40) is a PL011 rev1
[    0.648396] bio: create slab <bio-0> at 0
[    0.655776] fixed-dummy: no parameters
[    0.662025] SCSI subsystem initialized
[    0.674727] usbcore: registered new interface driver usbfs
[    0.675660] usbcore: registered new interface driver hub
[    0.676955] usbcore: registered new device driver usb
[    0.686876] Advanced Linux Sound Architecture Driver Initialized.
[    0.696167] NetLabel: Initializing
[    0.696398] NetLabel:  domain hash size = 128
[    0.696604] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.697722] NetLabel:  unlabeled traffic allowed by default
[    0.698517] Switching to clocksource v2m-timer1
[    0.767366] NET: Registered protocol family 2
[    0.774870] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.775541] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.776443] TCP: Hash tables configured (established 8192 bind 8192)
[    0.777022] TCP: reno registered
[    0.777305] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.777716] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.784513] NET: Registered protocol family 1
[    0.791817] RPC: Registered named UNIX socket transport module.
[    0.792132] RPC: Registered udp transport module.
[    0.792356] RPC: Registered tcp transport module.
[    0.792572] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.796043] CPU PMU: probing PMU on CPU 0
[    0.796589] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 1 counters available
[    0.804850] audit: initializing netlink socket (disabled)
[    0.805649] type=2000 audit(0.720:1): initialized
[    0.879233] VFS: Disk quotas dquot_6.5.2
[    0.881306] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.913731] NFS: Registering the id_resolver key type
[    0.914651] Key type id_resolver registered
[    0.914869] Key type id_legacy registered
[    0.915393] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.923291] msgmni has been set to 2011
[    0.932692] Key type asymmetric registered
[    0.933079] Asymmetric key parser 'x509' registered
[    0.935545] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.936902] io scheduler noop registered
[    0.937238] io scheduler deadline registered
[    0.939627] io scheduler cfq registered (default)
[    0.981987] brd: module loaded
[    0.998507] loop: module loaded
[    1.007465] Generic platform RAM MTD, (c) 2004 Simtec Electronics
[    1.008767] smsc911x: Driver version 2008-10-21
[    1.010334] smsc911x smsc911x (unregistered net_device): couldn't get clock -2
[    1.018653] libphy: smsc911x-mdio: probed
[    1.019296] smsc911x smsc911x eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=smsc911x-fffffff:01, irq=-1)
[    1.021489] smsc911x smsc911x eth0: MAC Address: 52:54:00:12:34:56
[    1.026947] isp1760 isp1760: NXP ISP1760 USB Host Controller
[    1.028431] isp1760 isp1760: new USB bus registered, assigned bus number 1
[    1.029077] isp1760 isp1760: Scratch test failed.
[    1.029312] isp1760 isp1760: can't setup
[    1.030214] isp1760 isp1760: USB bus 1 deregistered
[    1.033906] isp1760: Failed to register the HCD device
[    1.036116] usbcore: registered new interface driver usb-storage
[    1.042200] mousedev: PS/2 mouse device common for all mice
[    1.047414] rtc-pl031 mb:rtc: rtc core: registered pl031 as rtc0
[    1.048593] i2c /dev entries driver
[    1.055009] device-mapper: uevent: version 1.0.3
[    1.057791] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel at redhat.com
[    1.060854] cpuidle: using governor ladder
[    1.062879] mmci-pl18x mb:mmci: mmc0: PL181 manf 41 rev0 at 0x10005000 irq 41,42 (pio)
[    1.122357] mmc0: SD Status: Invalid Allocation Unit size.
[    1.123136] mmc0: new SD card at address 4567
[    1.127482] mmcblk0: mmc0:4567 QEMU! 498 MiB 
[    1.145279] input: AT Raw Set 2 keyboard as /devices/mb:kmi0/serio0/input/input0
[    1.148754]  mmcblk0: unknown partition table
[    1.165000] usbcore: registered new interface driver usbhid
[    1.165311] usbhid: USB HID core driver
[    1.195114] aaci-pl041 mb:aaci: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 43
[    1.195477] aaci-pl041 mb:aaci: FIFO 512 entries
[    1.197790] oprofile: using arm/armv7-ca9
[    1.200350] ipip: IPv4 over IPv4 tunneling driver
[    1.204173] TCP: cubic registered
[    1.204399] Initializing XFRM netlink socket
[    1.209089] NET: Registered protocol family 10
[    1.216884] mip6: Mobile IPv6
[    1.217158] NET: Registered protocol family 17
[    1.219047] 8021q: 802.1Q VLAN Support v1.8
[    1.219619] Key type dns_resolver registered
[    1.221542] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
[    1.265093] regulator-dummy: incomplete constraints, leaving on
[    1.269604] rtc-pl031 mb:rtc: setting system clock to 2015-08-18 13:09:41 UTC (1439903381)
[    1.272291] ALSA device list:
[    1.272483]   #0: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 43
[    1.755650] input: ImExPS/2 Generic Explorer Mouse as /devices/mb:kmi1/serio1/input/input1
[    1.762869] md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
[    1.804284] VFS: Mounted root (ext2 filesystem) on device 179:0.
[    1.806733] Freeing unused kernel memory: 212K (806c9000 - 806fe000)
[    2.495826] type=1404 audit(1439903382.720:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
[    4.011555] type=1403 audit(1439903384.240:3): policy loaded auid=4294967295 ses=4294967295
INIT: version 2.88 booting
Checking SELinux security contexts:
 * First booting, filesystem will be relabeled...
[    6.406970] type=1404 audit(1439903386.630:4): enforcing=0 old_enforcing=1 auid=4294967295 ses=4294967295
 * Relabel done, rebooting the system.
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
Stopping system message bus: Stopping Distributed Compiler Daemon: distcc/etc/rc6.d/K20distcc: stop failed with error code 1
hwclock: can't open '/dev/misc/rtc': No such file or directory
+ NAME=nslcd
+ CONFIG=/etc/nslcd.conf
+ DAEMON=/usr/sbin/nslcd
+ DESC='LDAP connection daemon'
+ STATEDIR=/var/run/nslcd
+ PIDFILE=/var/run/nslcd/nslcd.pid
+ case "$1" in
+ stop
+ echo -n 'Stopping LDAP connection daemon...'
Stopping LDAP connection daemon...+ start-stop-daemon --stop --quiet --pidfile /var/run/nslcd/nslcd.pid --name nslcd
+ '[' 1 -eq 0 ']'
+ echo failed.
failed.
+ rm -f /var/run/nslcd/nslcd.pid
+ exit 0
Error opening /dev/fb0: No such device or address
Stopping syslogd/klogd: no syslogd found; none killed
Deconfiguring network interfaces... ifdown: interface lo not configured
ifdown: interface eth0 not configured
done.
Sending all processes the TERM signal...
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
Rebooting... [   79.288846] reboot: Restarting system
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.65.cge-rt68 (jc at nate) (gcc version 4.7.0 (MontaVista Linux G++ 4.7-150206215610) ) #1 SMP PREEMPT Thu Aug 13 17:51:56 IST 2015
[    0.000000] CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: ARM-Versatile Express
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ms
[    0.000000] PERCPU: Embedded 8 pages/cpu @80f6c000 s9152 r8192 d15424 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
[    0.000000] Kernel command line: root=/dev/mmcblk0 rw mem=1024M raid=noautodetect rootwait console=ttyAMA0 devtmpfs.mount=0 security=selinux
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] allocated 2097152 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 1029912k/1029912k available, 18664k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x805050a8   (5109 kB)
[    0.000000]       .init : 0x806c9000 - 0x806fe3c0   ( 213 kB)
[    0.000000]       .data : 0x80700000 - 0x80736680   ( 218 kB)
[    0.000000]        .bss : 0x80736680 - 0x80765484   ( 188 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=5 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] smp_twd: clock not found -2
[    0.000000] Console: colour dummy device 80x30
[    0.065631] Calibrating delay loop... 683.62 BogoMIPS (lpj=3418112)
[    0.151463] pid_max: default: 32768 minimum: 501
[    0.152481] Security Framework initialized
[    0.153412] SELinux:  Initializing.
[    0.154026] Mount-cache hash table entries: 512
[    0.163378] Initializing cgroup subsys memory
[    0.163929] Initializing cgroup subsys devices
[    0.164070] Initializing cgroup subsys freezer
[    0.164145] Initializing cgroup subsys net_cls
[    0.164198] Initializing cgroup subsys blkio
[    0.164250] Initializing cgroup subsys perf_event
[    0.164326] Initializing cgroup subsys net_prio
[    0.164709] CPU: Testing write buffer coherency: ok
[    0.173566] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.173774] Setting up static identity map for 0x80504328 - 0x80504380
[    0.250192] Brought up 1 CPUs
[    0.250351] SMP: Total of 1 processors activated (683.62 BogoMIPS).
[    0.250444] CPU: All CPU(s) started in SVC mode.
[    0.265308] devtmpfs: initialized
[    0.289198] regulator-dummy: no parameters
[    0.292557] NET: Registered protocol family 16
[    0.294835] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.315092] L310 cache controller enabled
[    0.315153] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x02420000, Cache size: 131072 B
[    0.320644] hw-breakpoint: debug architecture 0x0 unsupported.
[    0.320752] Serial: AMBA PL011 UART driver
[    0.321937] mb:uart0: ttyAMA0 at MMIO 0x10009000 (irq = 37) is a PL011 rev1
[    0.343760] console [ttyAMA0] enabled
[    0.347537] mb:uart1: ttyAMA1 at MMIO 0x1000a000 (irq = 38) is a PL011 rev1
[    0.348927] mb:uart2: ttyAMA2 at MMIO 0x1000b000 (irq = 39) is a PL011 rev1
[    0.350560] mb:uart3: ttyAMA3 at MMIO 0x1000c000 (irq = 40) is a PL011 rev1
[    0.452811] bio: create slab <bio-0> at 0
[    0.456442] fixed-dummy: no parameters
[    0.461348] SCSI subsystem initialized
[    0.467035] usbcore: registered new interface driver usbfs
[    0.468059] usbcore: registered new interface driver hub
[    0.469396] usbcore: registered new device driver usb
[    0.480170] Advanced Linux Sound Architecture Driver Initialized.
[    0.489579] NetLabel: Initializing
[    0.490799] NetLabel:  domain hash size = 128
[    0.491034] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.492251] NetLabel:  unlabeled traffic allowed by default
[    0.493067] Switching to clocksource v2m-timer1
[    0.567202] NET: Registered protocol family 2
[    0.573911] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.575543] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.576420] TCP: Hash tables configured (established 8192 bind 8192)
[    0.577042] TCP: reno registered
[    0.577333] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.577732] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.580333] NET: Registered protocol family 1
[    0.582769] RPC: Registered named UNIX socket transport module.
[    0.583090] RPC: Registered udp transport module.
[    0.583313] RPC: Registered tcp transport module.
[    0.583534] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.587928] CPU PMU: probing PMU on CPU 0
[    0.588506] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 1 counters available
[    0.597340] audit: initializing netlink socket (disabled)
[    0.598182] type=2000 audit(0.540:1): initialized
[    0.673743] VFS: Disk quotas dquot_6.5.2
[    0.675816] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.705878] NFS: Registering the id_resolver key type
[    0.706820] Key type id_resolver registered
[    0.707046] Key type id_legacy registered
[    0.707564] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.714656] msgmni has been set to 2011
[    0.723022] Key type asymmetric registered
[    0.723285] Asymmetric key parser 'x509' registered
[    0.725313] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.726279] io scheduler noop registered
[    0.726544] io scheduler deadline registered
[    0.728351] io scheduler cfq registered (default)
[    0.769440] brd: module loaded
[    0.786889] loop: module loaded
[    0.795789] Generic platform RAM MTD, (c) 2004 Simtec Electronics
[    0.796896] smsc911x: Driver version 2008-10-21
[    0.798021] smsc911x smsc911x (unregistered net_device): couldn't get clock -2
[    0.806825] libphy: smsc911x-mdio: probed
[    0.807484] smsc911x smsc911x eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=smsc911x-fffffff:01, irq=-1)
[    0.808926] smsc911x smsc911x eth0: MAC Address: 52:54:00:12:34:56
[    0.814561] isp1760 isp1760: NXP ISP1760 USB Host Controller
[    0.816507] isp1760 isp1760: new USB bus registered, assigned bus number 1
[    0.817187] isp1760 isp1760: Scratch test failed.
[    0.817447] isp1760 isp1760: can't setup
[    0.817901] isp1760 isp1760: USB bus 1 deregistered
[    0.821565] isp1760: Failed to register the HCD device
[    0.823827] usbcore: registered new interface driver usb-storage
[    0.829905] mousedev: PS/2 mouse device common for all mice
[    0.836071] rtc-pl031 mb:rtc: rtc core: registered pl031 as rtc0
[    0.837115] i2c /dev entries driver
[    0.846015] device-mapper: uevent: version 1.0.3
[    0.849662] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel at redhat.com
[    0.852524] cpuidle: using governor ladder
[    0.855402] mmci-pl18x mb:mmci: mmc0: PL181 manf 41 rev0 at 0x10005000 irq 41,42 (pio)
[    0.917327] mmc0: SD Status: Invalid Allocation Unit size.
[    0.918017] mmc0: new SD card at address 4567
[    0.928973] mmcblk0: mmc0:4567 QEMU! 498 MiB 
[    0.931351] input: AT Raw Set 2 keyboard as /devices/mb:kmi0/serio0/input/input0
[    0.948643]  mmcblk0: unknown partition table
[    0.955525] usbcore: registered new interface driver usbhid
[    0.955835] usbhid: USB HID core driver
[    0.984562] aaci-pl041 mb:aaci: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 43
[    0.986023] aaci-pl041 mb:aaci: FIFO 512 entries
[    0.988404] oprofile: using arm/armv7-ca9
[    0.990536] ipip: IPv4 over IPv4 tunneling driver
[    0.995955] TCP: cubic registered
[    0.996267] Initializing XFRM netlink socket
[    1.001644] NET: Registered protocol family 10
[    1.009712] mip6: Mobile IPv6
[    1.010017] NET: Registered protocol family 17
[    1.011977] 8021q: 802.1Q VLAN Support v1.8
[    1.012585] Key type dns_resolver registered
[    1.014023] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
[    1.059720] regulator-dummy: incomplete constraints, leaving on
[    1.066639] rtc-pl031 mb:rtc: setting system clock to 2015-08-18 13:11:01 UTC (1439903461)
[    1.068835] ALSA device list:
[    1.069025]   #0: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 43
[    1.550859] input: ImExPS/2 Generic Explorer Mouse as /devices/mb:kmi1/serio1/input/input1
[    1.559723] md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
[    1.597147] EXT3-fs (mmcblk0): warning: feature flags set on rev 0 fs, running e2fsck is recommended
[    1.601176] EXT2-fs (mmcblk0): warning: feature flags set on rev 0 fs, running e2fsck is recommended
[    1.610201] VFS: Mounted root (ext2 filesystem) on device 179:0.
[    1.612363] Freeing unused kernel memory: 212K (806c9000 - 806fe000)
[    2.370332] type=1404 audit(1439903462.800:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
[    3.996452] type=1403 audit(1439903464.430:3): policy loaded auid=4294967295 ses=4294967295
INIT: version 2.88 booting
[    4.855397] type=1400 audit(1439903465.280:4): avc:  denied  { read write } for  pid=677 comm="mount" name="utab" dev="mmcblk0" ino=61173 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=file
[    6.858617] type=1400 audit(1439903467.290:5): avc:  denied  { read write } for  pid=692 comm="mount" name="utab" dev="mmcblk0" ino=61173 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=file
Error opening /dev/fb0: No such device or address
Starting udev
[    7.701608] type=1400 audit(1439903468.130:6): avc:  denied  { read write } for  pid=709 comm="mount" name="utab" dev="mmcblk0" ino=61173 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=file
[    8.631088] udevd[716]: starting version 182
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
Configuring network interfaces... [   45.048823] smsc911x smsc911x eth0: SMSC911x/921x identified at 0xc08c0000, IRQ: 47
udhcpc (v1.20.2) started
Sending discover...
Sending select for 10.162.103.247...
Lease of 10.162.103.247 obtained, lease time 86400
/etc/udhcpc.d/50default: Adding DNS 10.162.0.5
/etc/udhcpc.d/50default: Adding DNS 10.0.0.5
done.
Running postinst /etc/rpm-postinsts/nss...
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting sssd: [   62.249473] type=1400 audit(1439903522.440:7): avc:  denied  { search } for  pid=1269 comm="sssd" name="sssd" dev="tmpfs" ino=1698 scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:object_r:initrc_var_log_t:s0 tclass=dir
[FAILED]
Starting Distributed Compiler Daemon: distcc.
+ NAME=nslcd
+ CONFIG=/etc/nslcd.conf
+ DAEMON=/usr/sbin/nslcd
+ DESC='LDAP connection daemon'
+ STATEDIR=/var/run/nslcd
+ PIDFILE=/var/run/nslcd/nslcd.pid
+ case "$1" in
+ start
+ '[' -e /var/run/nslcd/nslcd.pid ']'
+ echo -n 'Starting LDAP connection daemon...'
Starting LDAP connection daemon...+ start-stop-daemon --start --oknodo --pidfile /var/run/nslcd/nslcd.pid --startas /usr/sbin/nslcd
[   63.408553] type=1400 audit(1439903523.540:8): avc:  denied  { read } for  pid=1280 comm="nslcd" name="resolv.conf" dev="mmcblk0" ino=27645 scontext=system_u:system_r:nslcd_t:s0 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file
[   63.511756] type=1400 audit(1439903523.640:9): avc:  denied  { read } for  pid=1280 comm="nslcd" path="pipe:[1728]" dev="pipefs" ino=1728 scontext=system_u:system_r:nslcd_t:s0 tcontext=system_u:system_r:nslcd_t:s0 tclass=fifo_file
[   63.591025] type=1400 audit(1439903523.720:10): avc:  denied  { write } for  pid=1282 comm="nslcd" path="pipe:[1728]" dev="pipefs" ino=1728 scontext=system_u:system_r:nslcd_t:s0 tcontext=system_u:system_r:nslcd_t:s0 tclass=fifo_file
[   63.592230] type=1400 audit(1439903523.720:11): avc:  denied  { write } for  pid=1282 comm="nslcd" path="pipe:[1728]" dev="pipefs" ino=1728 scontext=system_u:system_r:nslcd_t:s0 tcontext=system_u:system_r:nslcd_t:s0 tclass=fifo_file
+ '[' 1 -eq 0 ']'
+ echo failed.
failed.
+ exit 0
Starting syslogd/klogd: done
[   65.205112] type=1400 audit(1439903525.340:12): avc:  denied  { write } for  pid=1309 comm="avahi-daemon" name="log" dev="devtmpfs" ino=1767 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=sock_file
[   65.213763] type=1400 audit(1439903525.340:13): avc:  denied  { write } for  pid=1309 comm="avahi-daemon" name="log" dev="devtmpfs" ino=1767 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=sock_file
[   65.226695] type=1400 audit(1439903525.360:14): avc:  denied  { write } for  pid=1309 comm="avahi-daemon" name="log" dev="devtmpfs" ino=1767 scontext=system_u:system_r:avahi_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=sock_file
Stopping Bootlog daemon: bootlogd.

MontaVista Carrier Grade Linux 7.0.0 arm-cortex-a15 /dev/console

arm-cortex-a15 login: root
Would you like to enter a security context? [N] 
-------------- next part --------------
srinivas at srinivas:~/images$ qemu-system-arm -M vexpress-a9 -kernel ./zImage -serial stdio -m 1024 -append 'root=/dev/mmcblk0 rw mem=1024M raid=noautodetect rootwait console=ttyAMA0 devtmpfs.mount=0 security=selinux' -sd default-image-arm-cortex-a15-20150818125815.rootfs.ext2 -net nic -net tap,ifname=tap0,script=no,downscript=no
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.65.cge-rt68 (jc at nate) (gcc version 4.7.0 (MontaVista Linux G++ 4.7-150206215610) ) #1 SMP PREEMPT Thu Aug 13 17:51:56 IST 2015
[    0.000000] CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: ARM-Versatile Express
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ms
[    0.000000] PERCPU: Embedded 8 pages/cpu @80f6c000 s9152 r8192 d15424 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
[    0.000000] Kernel command line: root=/dev/mmcblk0 rw mem=1024M raid=noautodetect rootwait console=ttyAMA0 devtmpfs.mount=0 security=selinux
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] allocated 2097152 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 1029912k/1029912k available, 18664k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x805050a8   (5109 kB)
[    0.000000]       .init : 0x806c9000 - 0x806fe3c0   ( 213 kB)
[    0.000000]       .data : 0x80700000 - 0x80736680   ( 218 kB)
[    0.000000]        .bss : 0x80736680 - 0x80765484   ( 188 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=5 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] smp_twd: clock not found -2
[    0.000000] Console: colour dummy device 80x30
[    0.070431] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
[    0.158102] pid_max: default: 32768 minimum: 501
[    0.159059] Security Framework initialized
[    0.160013] SELinux:  Initializing.
[    0.160634] Mount-cache hash table entries: 512
[    0.170092] Initializing cgroup subsys memory
[    0.170677] Initializing cgroup subsys devices
[    0.170815] Initializing cgroup subsys freezer
[    0.170891] Initializing cgroup subsys net_cls
[    0.170943] Initializing cgroup subsys blkio
[    0.170993] Initializing cgroup subsys perf_event
[    0.171071] Initializing cgroup subsys net_prio
[    0.171458] CPU: Testing write buffer coherency: ok
[    0.180891] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.181092] Setting up static identity map for 0x80504328 - 0x80504380
[    0.258038] Brought up 1 CPUs
[    0.258201] SMP: Total of 1 processors activated (479.23 BogoMIPS).
[    0.258293] CPU: All CPU(s) started in SVC mode.
[    0.274617] devtmpfs: initialized
[    0.299059] regulator-dummy: no parameters
[    0.301962] NET: Registered protocol family 16
[    0.304168] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.325817] L310 cache controller enabled
[    0.325878] l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x02420000, Cache size: 131072 B
[    0.338913] hw-breakpoint: debug architecture 0x0 unsupported.
[    0.339073] Serial: AMBA PL011 UART driver
[    0.340868] mb:uart0: ttyAMA0 at MMIO 0x10009000 (irq = 37) is a PL011 rev1
[    0.363406] console [ttyAMA0] enabled
[    0.367340] mb:uart1: ttyAMA1 at MMIO 0x1000a000 (irq = 38) is a PL011 rev1
[    0.369283] mb:uart2: ttyAMA2 at MMIO 0x1000b000 (irq = 39) is a PL011 rev1
[    0.370637] mb:uart3: ttyAMA3 at MMIO 0x1000c000 (irq = 40) is a PL011 rev1
[    0.470038] bio: create slab <bio-0> at 0
[    0.473719] fixed-dummy: no parameters
[    0.478866] SCSI subsystem initialized
[    0.484537] usbcore: registered new interface driver usbfs
[    0.485710] usbcore: registered new interface driver hub
[    0.487140] usbcore: registered new device driver usb
[    0.498213] Advanced Linux Sound Architecture Driver Initialized.
[    0.507160] NetLabel: Initializing
[    0.507389] NetLabel:  domain hash size = 128
[    0.509100] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.510892] NetLabel:  unlabeled traffic allowed by default
[    0.512042] Switching to clocksource v2m-timer1
[    0.586738] NET: Registered protocol family 2
[    0.593334] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.595016] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.596185] TCP: Hash tables configured (established 8192 bind 8192)
[    0.596969] TCP: reno registered
[    0.597368] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.597939] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.601720] NET: Registered protocol family 1
[    0.605539] RPC: Registered named UNIX socket transport module.
[    0.605991] RPC: Registered udp transport module.
[    0.606312] RPC: Registered tcp transport module.
[    0.606624] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.611888] CPU PMU: probing PMU on CPU 0
[    0.612716] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 1 counters available
[    0.623508] audit: initializing netlink socket (disabled)
[    0.624887] type=2000 audit(0.550:1): initialized
[    0.708527] VFS: Disk quotas dquot_6.5.2
[    0.709770] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.747224] NFS: Registering the id_resolver key type
[    0.748408] Key type id_resolver registered
[    0.748672] Key type id_legacy registered
[    0.749308] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.758378] msgmni has been set to 2011
[    0.766445] Key type asymmetric registered
[    0.766713] Asymmetric key parser 'x509' registered
[    0.768418] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.769371] io scheduler noop registered
[    0.769601] io scheduler deadline registered
[    0.771347] io scheduler cfq registered (default)
[    0.822272] brd: module loaded
[    0.838902] loop: module loaded
[    0.847471] Generic platform RAM MTD, (c) 2004 Simtec Electronics
[    0.848587] smsc911x: Driver version 2008-10-21
[    0.849744] smsc911x smsc911x (unregistered net_device): couldn't get clock -2
[    0.859711] libphy: smsc911x-mdio: probed
[    0.860351] smsc911x smsc911x eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=smsc911x-fffffff:01, irq=-1)
[    0.861657] smsc911x smsc911x eth0: MAC Address: 52:54:00:12:34:56
[    0.867275] isp1760 isp1760: NXP ISP1760 USB Host Controller
[    0.868623] isp1760 isp1760: new USB bus registered, assigned bus number 1
[    0.869295] isp1760 isp1760: Scratch test failed.
[    0.869566] isp1760 isp1760: can't setup
[    0.870007] isp1760 isp1760: USB bus 1 deregistered
[    0.874589] isp1760: Failed to register the HCD device
[    0.876749] usbcore: registered new interface driver usb-storage
[    0.882967] mousedev: PS/2 mouse device common for all mice
[    0.888904] rtc-pl031 mb:rtc: rtc core: registered pl031 as rtc0
[    0.889960] i2c /dev entries driver
[    0.896655] device-mapper: uevent: version 1.0.3
[    0.899486] device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel at redhat.com
[    0.901612] cpuidle: using governor ladder
[    0.903626] mmci-pl18x mb:mmci: mmc0: PL181 manf 41 rev0 at 0x10005000 irq 41,42 (pio)
[    0.960611] mmc0: SD Status: Invalid Allocation Unit size.
[    0.961380] mmc0: new SD card at address 4567
[    0.966710] mmcblk0: mmc0:4567 QEMU! 498 MiB 
[    0.982463]  mmcblk0: unknown partition table
[    0.989323] input: AT Raw Set 2 keyboard as /devices/mb:kmi0/serio0/input/input0
[    0.999098] usbcore: registered new interface driver usbhid
[    0.999398] usbhid: USB HID core driver
[    1.027850] aaci-pl041 mb:aaci: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 43
[    1.028205] aaci-pl041 mb:aaci: FIFO 512 entries
[    1.030547] oprofile: using arm/armv7-ca9
[    1.032499] ipip: IPv4 over IPv4 tunneling driver
[    1.037229] TCP: cubic registered
[    1.037455] Initializing XFRM netlink socket
[    1.042426] NET: Registered protocol family 10
[    1.049708] mip6: Mobile IPv6
[    1.049993] NET: Registered protocol family 17
[    1.051851] 8021q: 802.1Q VLAN Support v1.8
[    1.052503] Key type dns_resolver registered
[    1.053984] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 0
[    1.099333] regulator-dummy: incomplete constraints, leaving on
[    1.105367] rtc-pl031 mb:rtc: setting system clock to 2015-08-18 13:14:39 UTC (1439903679)
[    1.107468] ALSA device list:
[    1.107649]   #0: ARM AC'97 Interface PL041 rev0 at 0x10004000, irq 43
[    1.606072] input: ImExPS/2 Generic Explorer Mouse as /devices/mb:kmi1/serio1/input/input1
[    1.610695] md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
[    1.649722] EXT2-fs (mmcblk0): warning: mounting unchecked fs, running e2fsck is recommended
[    1.653573] VFS: Mounted root (ext2 filesystem) on device 179:0.
[    1.655992] Freeing unused kernel memory: 212K (806c9000 - 806fe000)
[    2.400423] type=1404 audit(1439903680.790:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
[    3.937910] type=1403 audit(1439903682.330:3): policy loaded auid=4294967295 ses=4294967295
INIT: version 2.88 booting
Checking SELinux security contexts:
 * /.autorelabel placed, filesystem will be relabeled...
egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

egrep: unrecognized option '--silent'
BusyBox v1.20.2 (2015-08-12 15:36:38 IST) multi-call binary.

No help available.

Cleaning out /tmp


More information about the selinux mailing list