From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] (gcc-gnat) repocop-lintian: bad-permissions-for-ali-file
Date: Tue, 6 May 2008 22:49:22 +0400
Message-ID: <20080506184922.GK15348@solemn.turbinal> (raw)
In-Reply-To: <m37ie78fvs.fsf@megabox.rus.yoursway.com>
[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]
On Wed, May 07, 2008 at 01:08:23AM +0700, Mikhail Gusarov wrote:
> Twas brillig at 19:18:29 06.05.2008 UTC+04 when Alexey Tourbin did gyre and gimble:
>
> >> Info: Ada Library Information (*.ali) files are required to be read-only
> >> (mode 0444) by GNAT.
> >> .
> >> If at least one user can write the *.ali file, GNAT considers whether
> >> or not to recompile the corresponding source file. Such recompilation
> >> would fail because normal users don't have write permission on the
> >> files. Moreover, such recompilation would defeat the purpose of
> >> library packages, which provide *.a and *.so libraries to link against).
>
> AT> Это какой-то бред сельских дедов. Рут может писать в файлы с любыми
> AT> правами доступа, хоть 000.
>
> Расширенное описание теста кривое. GNAT просто проверяет три w-бита.
Так не стоит проверять, потому что реально возможность записи в файл
со стороны "at least one user" зависит от многих факторов (включая ACL,
опции монтирования и кое-что ещё).
Но можно проверять, например, access(file, W_OK).
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-05-06 18:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 7:31 Igor Vlasenko
2008-05-06 9:21 ` Dmitry V. Levin
2008-05-06 9:32 ` Igor Vlasenko
2008-05-06 15:18 ` Alexey Tourbin
2008-05-06 18:08 ` Mikhail Gusarov
2008-05-06 18:49 ` Alexey Tourbin [this message]
2008-05-06 20:04 ` Mikhail Gusarov
2008-05-06 20:59 ` Dmitry V. Levin
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=20080506184922.GK15348@solemn.turbinal \
--to=at@altlinux.ru \
--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