Bug 439622

Summary: insufficient permissions of /dev/video0
Product: [Fedora] Fedora Reporter: vikram goyal <vikigoyal>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 8CC: davidz, james, pertusus
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-09 06:17:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
hal-device output
output of ck-list-sessions
output of tree /sys none

Description vikram goyal 2008-03-29 17:55:48 UTC
Description of problem:
/dev/video0 has rw-rw---- 1 root root permissions which makes it unusable by
normal user

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.plug in ibm web cam
Actual results:
[vikram@mahashiv ~]$ ll /dev/video0
crw-rw---- 1 root root 81, 0 2008-03-29 22:13 /dev/video0

[vikram@mahashiv ~]$ llz /dev/video0
crw-rw----  root root system_u:object_r:v4l_device_t:s0 /dev/video0

Expected results:
insufficient permissions. Have to chmod 666 as root to use the device

Additional info:
relevant lsmod:

ibmcam                 48173  0
usbvideo               25925  1 ibmcam
compat_ioctl32          5185  1 usbvideo
videodev               27713  1 usbvideo
v4l2_common            18497  1 videodev
v4l1_compat            15813  1 videodev

Comment 1 vikram goyal 2008-03-29 17:55:48 UTC
Created attachment 299590 [details]
hal-device output

Comment 2 David Zeuthen 2008-03-29 18:50:31 UTC
What's the output of

 - ck-list-sessions
 - getenforce
 - tree /sys

(If SELinux is in enforcing mode and changing that to permissive mode
(setenforce 0) fixes this problem, then please reassign to selinux-policy.) 

Comment 3 vikram goyal 2008-03-30 04:02:19 UTC
I have checked it in both enforcing and permissive mode. The permissions remain
same. Also there is no selinux denial output anytime anywhere, otherwise I would
have filed the bug in that context. I have attached output of ck-list-sessions &
tree /sys as asked.

Comment 4 vikram goyal 2008-03-30 04:03:57 UTC
Created attachment 299608 [details]
output of ck-list-sessions

Comment 5 vikram goyal 2008-03-30 04:05:12 UTC
Created attachment 299610 [details]
output of tree /sys

Comment 6 David Zeuthen 2008-03-30 07:12:14 UTC
Driver bug: need device-> symlinks in sysfs.

Comment 7 Chuck Ebbert 2008-04-03 03:10:41 UTC
Must be specific to the ibmcam driver:
|-- dev
|-- name
|-- power
|   `-- wakeup
|-- subsystem -> ../../../class/video4linux
`-- uevent

A uvcvideo camera has this:
|-- dev
|-- device ->
|-- name
|-- power
|   `-- wakeup
|-- subsystem -> ../../../../../../../../../class/video4linux
`-- uevent

Comment 8 Bug Zapper 2008-11-26 10:18:41 UTC
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '8'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 8's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 8 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 

Comment 9 Bug Zapper 2009-01-09 06:17:17 UTC
Fedora 8 changed to end-of-life (EOL) status on 2009-01-07. Fedora 8 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.