From: Pavel Shilovsky <piastry@altlinux.org> To: devel@lists.altlinux.org Subject: [devel] nfs mountd --manage-gids problem Date: Wed, 1 Jun 2011 16:20:20 +0400 Message-ID: <BANLkTimX_4NesvRBd6XNMLEcTtq1i7jKng@mail.gmail.com> (raw) Здравствуйте! После включения опции --manage-gids появилась такая проблема: пользователю перестали применяться группы на сервере. Выяснилось, что getgrouplist как-то некорректно работает со static переменными groups и group_len в вызове auth_unix_gid в utils/mountd/cache.c: первый вызов срабатывает, второй - нет с ошибкой -1, но количество групп у пользователя много меньше чем размер передаваемого массива. Если убрать static атрибуты - вызовы завершаются удачно. Причиной же сломанной работы стал коммит http://git.altlinux.org/people/piastry/packages/?p=nfs.git;a=commit;h=9274e94db85bac04e170414cb8e0f4be271cde90. Я его отревертил и всё заработало корректно. Текущий вариант лежит тут: http://git.altlinux.org/people/piastry/packages/?p=nfs.git;a=summary. Отправил письмо в апстрим, но пока ответа нет http://article.gmane.org/gmane.linux.nfs/40958. Собственно вопроса два: 1) чем может быть объяснено такое странное поведение getgrouplist со статик переменными (проверял его отдельно, вне кода mountd)? 2) есть ли лучшее решение на текущий момент, чем просто отревертить сломанной коммит? -- Best regards, Pavel Shilovsky.
next reply other threads:[~2011-06-01 12:20 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-06-01 12:20 Pavel Shilovsky [this message] 2011-06-01 15:11 ` Rinat Bikov 2011-06-01 18:25 ` Pavel Shilovsky 2011-06-09 6:28 ` Pavel Shilovsky 2011-06-09 8:23 ` Sergey Bolshakov 2013-01-11 13:20 ` Evgeny Sinelnikov 2011-06-01 15:23 ` Rinat Bikov 2011-06-01 15:36 ` Rinat Bikov 2011-06-01 15:49 ` Rinat Bikov
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=BANLkTimX_4NesvRBd6XNMLEcTtq1i7jKng@mail.gmail.com \ --to=piastry@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