-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add wildcard support to %include on configuration files (ticket 25140) #489
Add wildcard support to %include on configuration files (ticket 25140) #489
Conversation
dee5c2e
to
517a3f2
Compare
Pull Request Test Coverage Report for Build 6152
💛 - Coveralls |
63a929f
to
2314057
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor details that needs to be fixed. Good stuff in general.
56465f6
to
49e8156
Compare
I've fixed the mentioned issues. Additionally, I've rebased to the current master and added support for bool type on the checkSpace.pl script because it started complaining when I had functions returning bool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor detail
35205d9
to
99c0024
Compare
982d549
to
357c7fc
Compare
tor_glob returns a list of paths matching the specified pattern
Adds support for wildcards on path components before last
Also fixes some diffrent wildcard behaviour between Windows and Linux
Adds test for get_glob_opened_files and improves tor_glob and config tests
glob uses lstat which was not allowed by the seccomp filters
Reverting because it is a duplicate of the work done for #25140 This reverts commit ba3c785.
Co-Authored-By: Jigsaw52 <Jigsaw52@users.noreply.github.com>
Adds is_file and is_dir to files.h and some other minor improvements
Adds documentation about using %include and Sandbox, expansion of dot files in wildcards and Windows wildcard quirks.
Convert duplicated code on both functions to common small auxiliary functions.
7afb7bc
to
5a89381
Compare
Tests wildcards in %include, reloading the config file and response of SAVECONF and getinfo config-can-saveconf control commands.
5a89381
to
5659899
Compare
Fixes reloading torrc with seccomp sandbox enabled on machines with libc version < 2.26. Although libc before the 2.26 version did not used openat for opening files, it used it on readdir. The seccomp %include rules were update to allow openat on any %included directories. This caused the %include integration test to fail when the seccomp sandbox was enabled.
Adds seccomp rules for socket and getpeername used by NSS
791016d
to
fecfdf4
Compare
Closed because new pull request #1915 with new implementation was made. |
No description provided.