> On 6 Aug 2021, at 18:11, Natassia <natassi...@protonmail.com.INVALID> wrote:
>
> Hello to all,
>
> I'm developing a module that I'm going to publish on GitHub when finished,
> maybe people will be in the same "search" as me.
>
> I am trying to access the "SuexecUserGroup" variable. But in the Apache
> documentation, they don't reference the access.
Perhaps because it's not part of any API.
> I tried several methods, but Apache returns the contents of the
> "SuexecUserGroup" variable of the last loaded VHOST.
>
> Do you know the path to the variable in C ?
That's a property of mod_suexec. For another module to access it requires that
you
break modularity, and look up mod_suexec's config for the virtual host.
> I can get other variables from the VHOST and the content, but this one,
> impossible.
>
> Solution, create my own variable and fill it. But I like to work with what is
> native. So Apache already has the information in the VHOST and I find it
> clean to retrieve it and not make a new one.
I'm not clear from that how you've tried to retrieve it. If you're already
doing what I
said, you may be doing it in a hook where the vhost doesn't actually exist as a
current server_rec identity. If so there's an even more messy way to get it
(provided
you're at least after config has happened): iterate through server_recs and
find yours.
But if that's the solution, it suggests the problem may want re-thinking!
--
Nick Kew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org