relative_cgi #10

Merged
solene merged 4 commits from relative_cgi into master 2022-09-20 12:04:10 +00:00
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 2022-09-20 11:01:25 +00:00
solene merged commit cad05817d3 into master 2022-09-20 12:04:10 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: solene/vger#10
No description provided.