ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Sergei O. Naumov" <vomus@rambler.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Работа sane ( доступ к устройствам )
Date: Wed, 22 Oct 2008 01:16:20 +0400
Message-ID: <200810220116.20773@VOMUS> (raw)
In-Reply-To: <gdiu67$o8q$1@ger.gmane.org>

В сообщении от Вторник 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


-- 
Сергей


      reply	other threads:[~2008-10-21 21:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-19 18:44 Sergei O. Naumov
2008-10-19 19:09 ` Igor Vlasenko
2008-10-19 19:53 ` Vitaly Lipatov
2008-10-20 16:56   ` Sergei O. Naumov
2008-11-09 22:35   ` Olvin
2008-10-20  5:07 ` Eugene Prokopiev
2008-10-20  6:08 ` Alexander Bokovoy
2008-10-20 17:02   ` Sergei O. Naumov
2008-10-20 19:52   ` Sergei O. Naumov
2008-10-21 19:45     ` Sergey Vlasov
2008-10-20 12:16 ` Anton Farygin
2008-10-20 16:56   ` Sergei O. Naumov
2008-10-20 21:44     ` Anton Farygin
2008-10-21 21:16       ` Sergei O. Naumov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810220116.20773@VOMUS \
    --to=vomus@rambler.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git