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
[plugins] sizelimit not applied when add_copy_spec called to a dir #1750
Comments
Will be resolved by #1870. |
TurboTurtle
added a commit
to TurboTurtle/sos
that referenced
this issue
Apr 28, 2020
Addresses an issue where size limiting was not being applied to whole directory specifications, as we would only stat the directory directly when it was returned from a glob. Now, if the given copyspec is just a directory path, recurse into it with an explicit '*' match. Updates the forbidden path check to account for the newly extended files list to match against the directory-only forbidden specifications. This may result in more log entries for deep directory structures whose parent directory/directories is/are forbidden. Closes: sosreport#1750 Resolves: sosreport#2035 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
6 tasks
TurboTurtle
added a commit
to TurboTurtle/sos
that referenced
this issue
May 5, 2020
Addresses an issue where size limiting was not being applied to whole directory specifications, as we would only stat the directory directly when it was returned from a glob. Now, if the given copyspec is just a directory path, recurse into it with an explicit '*' match. Updates the forbidden path check to account for the newly extended files list to match against the directory-only forbidden specifications. This may result in more log entries for deep directory structures whose parent directory/directories is/are forbidden. Closes: sosreport#1750 Resolves: sosreport#2035 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
TurboTurtle
added a commit
to TurboTurtle/sos
that referenced
this issue
May 5, 2020
Addresses an issue where size limiting was not being applied to whole directory specifications, as we would only stat the directory directly when it was returned from a glob. Now, if the given copyspec is just a directory path, recurse into it with an explicit '*' match. Updates the forbidden path check to account for the newly extended files list to match against the directory-only forbidden specifications. This may result in more log entries for deep directory structures whose parent directory/directories is/are forbidden. Closes: sosreport#1750 Resolves: sosreport#2035 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
TurboTurtle
added a commit
to TurboTurtle/sos
that referenced
this issue
May 5, 2020
Addresses an issue where size limiting was not being applied to whole directory specifications, as we would only stat the directory directly when it was returned from a glob. Now, if the given copyspec is just a directory path, recurse into it with an explicit '*' match. Updates the forbidden path check to account for the newly extended files list to match against the directory-only forbidden specifications. This may result in more log entries for deep directory structures whose parent directory/directories is/are forbidden. Closes: sosreport#1750 Resolves: sosreport#2035 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
TurboTurtle
added a commit
to TurboTurtle/sos
that referenced
this issue
May 6, 2020
Addresses an issue where size limiting was not being applied to whole directory specifications, as we would only stat the directory directly when it was returned from a glob. Now, if the given copyspec is just a directory path, recurse into it with an explicit '*' match. Updates the forbidden path check to account for the newly extended files list to match against the directory-only forbidden specifications. This may result in more log entries for deep directory structures whose parent directory/directories is/are forbidden. Closes: sosreport#1750 Resolves: sosreport#2035 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
TurboTurtle
added a commit
to TurboTurtle/sos
that referenced
this issue
May 6, 2020
Addresses an issue where size limiting was not being applied to whole directory specifications, as we would only stat the directory directly when it was returned from a glob. Now, if the given copyspec is just a directory path, recurse into it with an explicit '*' match. Updates the forbidden path check to account for the newly extended files list to match against the directory-only forbidden specifications. This may result in more log entries for deep directory structures whose parent directory/directories is/are forbidden. Closes: sosreport#1750 Resolves: sosreport#2035 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
TurboTurtle
added a commit
to TurboTurtle/sos
that referenced
this issue
May 6, 2020
Addresses an issue where size limiting was not being applied to whole directory specifications, as we would only stat the directory directly when it was returned from a glob. Now, if the given copyspec is just a directory path, recurse into it with an explicit '*' match. Updates the forbidden path check to account for the newly extended files list to match against the directory-only forbidden specifications. This may result in more log entries for deep directory structures whose parent directory/directories is/are forbidden. Closes: sosreport#1750 Resolves: sosreport#2035 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
TurboTurtle
added a commit
to TurboTurtle/sos
that referenced
this issue
May 6, 2020
Addresses an issue where size limiting was not being applied to whole directory specifications, as we would only stat the directory directly when it was returned from a glob. Now, if the given copyspec is just a directory path, recurse into it with an explicit '*' match. Updates the forbidden path check to account for the newly extended files list to match against the directory-only forbidden specifications. This may result in more log entries for deep directory structures whose parent directory/directories is/are forbidden. Closes: sosreport#1750 Resolves: sosreport#2035 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Separating this issue from #1678 (comment):
Calling
add_copy_spec
to a directory,stat
is applied to the directory "file" itself. That means, sizelimit is compared against the small size of the directory "file" itself, but not against the directory content.We shall either replace
glob.glob()
at https://github.com/sosreport/sos/blob/master/sos/plugins/__init__.py#L1198 byos.walk
, or merge parts ofadd_copy_spec
with_do_copy_path
(as_do_copy_path
does the proper directory/symlink traversal needed to be done before applying thesizelimit
).The text was updated successfully, but these errors were encountered: