[sisyphus] Работа sane ( доступ к устройствам )
Sergei O. Naumov
=?iso-8859-1?q?vomus_=CE=C1_rambler=2Eru?=
Ср Окт 22 01:16:20 MSD 2008
В сообщении от Вторник 21 октября 2008 Anton Farygin написал(a):
> > Под рутом все в порядке. Это проявляется только от обычного пользователя.
> > Причем этот пользователь находится в группе wheel, а устройства в usbfs
> > монтируются root:wheel. Устройстов в /dev вообще имеет хозяином
> > пользователя, пытающегпся получить доступ к сканеру.
>
> Проверте strace -fF -e trace=file scanimage -L (или сам sane).
>
> Куда он обращается и кто ему даёт реджект.
Вообще, не понимаю, зачем он делает это? Зачем он пытается загрузить parport?
Видимо, поскольку от обычного юзера это сделать нельзя, он и пишет, что не
может записать в modules.dep. Но зачем ему это?
Process 10034 attached
[pid 10034] execve("/bin/sh", ["sh", "-c", "/sbin/modprobe parport"], [/* 66
vars */]Process 10029 suspended
[pid 10034] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
[pid 10034] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid 10034] open("/lib/libdl.so.2", O_RDONLY) = 3
[pid 10034] open("/lib/libc.so.6", O_RDONLY) = 3
[pid 10034] open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
[pid 10034] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
[pid 10034] open("/usr/share/locale/locale.alias", O_RDONLY) = -1 ENOENT (No
such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_IDENTIFICATION", O_RDONLY)
= -1 ENOENT (No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_IDENTIFICATION", O_RDONLY) = 3
[pid 10034] open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_MEASUREMENT", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_TELEPHONE", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_TELEPHONE", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_ADDRESS", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_ADDRESS", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT
(No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_NAME", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT
(No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_PAPER", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_MESSAGES", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_MESSAGES", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES",
O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_MONETARY", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_MONETARY", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_COLLATE", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_COLLATE", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT
(No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_TIME", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_NUMERIC", O_RDONLY) = -1
ENOENT (No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_NUMERIC", O_RDONLY) = 3
[pid 10034] open("/usr/lib/locale/ru_RU.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT
(No such file or directory)
[pid 10034] open("/usr/lib/locale/ru_RU.utf8/LC_CTYPE", O_RDONLY) = 3
[pid 10034] open("/proc/meminfo", O_RDONLY) = 3
[pid 10034] stat64("/home/serge", {st_mode=S_IFDIR|0700, st_size=7472, ...}) =
0
[pid 10034] stat64(".", {st_mode=S_IFDIR|0700, st_size=7472, ...}) = 0
[pid 10034] stat64(".", {st_mode=S_IFDIR|0700, st_size=7472, ...}) = 0
[pid 10034] stat64("/opt/android-sdk/tools/sh", 0xbfa03498) = -1 ENOENT (No
such file or directory)
[pid 10034] stat64("/opt/android-sdk/tools/sh", 0xbfa03498) = -1 ENOENT (No
such file or directory)
[pid 10034] stat64("/opt/android-sdk/tools/sh", 0xbfa03498) = -1 ENOENT (No
such file or directory)
[pid 10034] stat64("/home/serge/bin/sh", 0xbfa03498) = -1 ENOENT (No such file
or directory)
[pid 10034] stat64("/usr/local/bin/sh", 0xbfa03498) = -1 ENOENT (No such file
or directory)
[pid 10034] stat64("/usr/bin/sh", 0xbfa03498) = -1 ENOENT (No such file or
directory)
[pid 10034] stat64("/bin/sh", {st_mode=S_IFREG|0755, st_size=403620, ...}) = 0
[pid 10034] open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 3
[pid 10034] stat64("/bin/sh", {st_mode=S_IFREG|0755, st_size=403620, ...}) = 0
[pid 10034] execve("/sbin/modprobe", ["/sbin/modprobe", "parport"], [/* 66
vars */]) = 0
[pid 10034] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
[pid 10034] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid 10034] open("/lib/libz.so.1", O_RDONLY) = 3
[pid 10034] open("/lib/libc.so.6", O_RDONLY) = 3
[pid 10034] open("/etc/modprobe.conf", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.conf", O_RDONLY) = 3
[pid 10034] open("/etc/modprobe.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = 3
[pid 10034] open("/etc/modprobe.d/oss", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/oss", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/arch", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/arch", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/kqemu", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/kqemu", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/local", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/local", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/saa7134", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/saa7134", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/blacklist-hwmon", O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/blacklist-hwmon", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/blacklist-edac", O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/blacklist-edac", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/lm_sensors", O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/lm_sensors", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/blacklist-autoconverted", O_RDONLY|
O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/blacklist-autoconverted", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/rng-tools", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/rng-tools", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/blacklist-watchdog", O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/blacklist-watchdog", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/isapnp", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/isapnp", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/blacklist-framebuffer", O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/blacklist-framebuffer", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/aliases", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/aliases", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/hotplug", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/hotplug", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/options", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/options", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/bluetooth", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/bluetooth", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/install", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/install", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/local-autoconverted", O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/local-autoconverted", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/blacklist-net", O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/blacklist-net", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/blacklist", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/blacklist", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d/alsa-modindex", O_RDONLY|O_NONBLOCK|
O_LARGEFILE|O_DIRECTORY|0x80000) = -1 ENOTDIR (Not a directory)
[pid 10034] open("/etc/modprobe.d/alsa-modindex", O_RDONLY) = 4
[pid 10034] open("/etc/modprobe.d", O_RDONLY) = 3
[pid 10034] open("/lib/modules/2.6.25-std-def-alt10/modules.dep", O_RDONLY)
= -1 EACCES (Permission denied)
FATAL: Could not load /lib/modules/2.6.25-std-def-alt10/modules.dep:
Permission denied
--
Сергей
Подробная информация о списке рассылки Sisyphus