relative_cgi #10

Merged
solene merged 4 commits from relative_cgi into master 2 weeks ago
prx commented 2 weeks ago
Collaborator

Flag -c is now relative to capsule root directory.
This allow to host multiple virtualhosts and get cgi support for each of them as long as they store cgis in a path with the same name.

In the meantime :

  • drop_privileges is splitted to set_rootdir : the first handle user permissions and the latter set chroot and call unveil/pledge
  • request is parsed before dropping privileges to get the hostname, useful for virtualhosts
  • the check to know wether a file is in the cgi directory or not now compare inodes instead of filenames.
Flag -c is now relative to capsule root directory. This allow to host multiple virtualhosts and get cgi support for each of them as long as they store cgis in a path with the same name. In the meantime : * drop_privileges is splitted to set_rootdir : the first handle user permissions and the latter set chroot and call unveil/pledge * request is parsed before dropping privileges to get the hostname, useful for virtualhosts * the check to know wether a file is in the cgi directory or not now compare inodes instead of filenames.
prx added 4 commits 2 weeks ago
solene merged commit cad05817d3 into master 2 weeks ago
The pull request has been merged as cad05817d3.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: solene/vger#10
Loading…
There is no content yet.