From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] I: dbus: SELinux support breaks software
Date: Mon, 30 Aug 2010 12:14:10 +0400
Message-ID: <20100830081409.GC6048@altlinux.org> (raw)
In-Reply-To: <1283149501.3294.11.camel@shrek.croc.ru>
[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]
On Mon, Aug 30, 2010 at 10:25:01AM +0400, Valery V. Ionozemtsev wrote:
> В Пнд, 30/08/2010 в 02:21 +0400, Dmitry V. Levin пишет:
> > On Mon, Aug 30, 2010 at 01:57:47AM +0400, ALT beekeeper wrote:
> > > telepathy-glib-0.10.7-alt1
> > > make[4]: Entering directory `/usr/src/RPM/BUILD/telepathy-glib-0.10.7/tests/dbus'
> > > Could not tell if SELinux is enabled: No such file or directory
> > > SELinux pre-initialization failed
> [..]
> > Это результат включения поддержки SELinux в dbus-1.2.24-alt2.
>
> какие то проблемы в hasher'e. is_selinux_enabled() возвращает 0 если
> SELinux выключет и 1 если включен. простой тест
>
> #include <stdio.h>
> #include <selinux/selinux.h>
>
> void main(int argc, char **argv) {
> printf("%i\n", is_selinux_enabled());
> }
>
> у меня в локальном хашере возвращает 0, почему в сборочнице оно
> верзвращает -1?
-1 это документированный код возврата, надо его правильно интерпретировать.
В частности, is_selinux_enabled() возвращает -1, когда не может открыть
файл /proc/filesystems с тем, чтобы поискать там слово selinuxfs.
Другими словами, SELinux считается включённым тогда и только тогда, когда
is_selinux_enabled() > 0. Исправляйте ваших клиентов библиотеки libselinux.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-08-30 8:14 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-29 22:11 ` [devel] Q: Xvfb: " Dmitry V. Levin
2010-08-30 6:28 ` Valery V. Ionozemtsev
2010-08-30 6:31 ` Valery V. Ionozemtsev
2010-08-30 8:02 ` Michael Shigorin
2010-08-30 9:52 ` Dmitry V. Levin
2010-08-30 8:07 ` Dmitry V. Levin
2010-08-30 8:16 ` Valery V. Ionozemtsev
2010-08-30 8:18 ` Dmitry V. Levin
2010-08-30 8:27 ` Valery V. Ionozemtsev
2010-08-30 9:51 ` [devel] I: xorg-server, dbus: " Dmitry V. Levin
2010-08-30 10:08 ` Valery V. Ionozemtsev
2010-08-30 10:13 ` Dmitry V. Levin
2010-08-30 10:29 ` Michael Shigorin
2010-08-30 10:09 ` Alexey Gladkov
2010-08-30 10:21 ` Dmitry V. Levin
2010-08-30 10:30 ` Alexey Gladkov
2010-08-30 11:16 ` Mikhail Efremov
2010-08-30 11:30 ` Alexey Gladkov
2010-08-30 13:16 ` Dmitry V. Levin
2010-08-30 13:29 ` Valery V. Ionozemtsev
2010-08-30 13:52 ` Dmitry V. Levin
2010-08-30 14:05 ` Valery V. Ionozemtsev
2010-08-30 15:32 ` Dmitry V. Levin
2010-08-31 12:17 ` Michael Shigorin
2010-08-31 12:25 ` Kirill A. Shutemov
2010-08-31 12:41 ` Igor Zubkov
2010-08-31 13:02 ` Dmitry V. Levin
2010-08-31 13:26 ` Alexey Gladkov
2010-08-31 13:41 ` Anton Farygin
2010-08-31 13:46 ` Valery V. Inozemtsev
2010-08-31 14:03 ` Dmitry V. Levin
2010-08-31 14:14 ` Michael Shigorin
2010-08-31 15:05 ` Dmitry V. Levin
2010-08-31 15:09 ` Dmitry V. Levin
2010-08-31 14:56 ` Anton Farygin
2010-08-31 15:03 ` Dmitry V. Levin
2010-08-31 17:06 ` Anton Farygin
2010-09-01 0:55 ` Денис Смирнов
2010-09-01 4:54 ` Anton Farygin
2010-09-01 5:05 ` Денис Смирнов
2010-09-01 11:38 ` Dmitry V. Levin
2010-08-30 13:41 ` Alexey Gladkov
2010-08-30 13:09 ` Dmitry V. Levin
2010-08-30 11:44 ` Valery V. Ionozemtsev
2010-08-30 13:46 ` Dmitry V. Levin
2010-08-30 13:57 ` Valery V. Ionozemtsev
2010-08-30 8:27 ` [devel] Q: Xvfb: " Alexey Gladkov
2010-08-30 11:32 ` Mikhail Efremov
2010-08-30 11:39 ` Alexey Gladkov
2010-08-29 22:21 ` [devel] I: dbus: " Dmitry V. Levin
2010-08-30 6:25 ` Valery V. Ionozemtsev
2010-08-30 8:10 ` Mikhail Efremov
2010-08-30 8:14 ` Dmitry V. Levin [this message]
2010-08-30 14:21 ` Valery V. Ionozemtsev
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=20100830081409.GC6048@altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git