-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8356997: /etc/krb5.conf parser should not forbid include/includedir directives after sections #25421
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back weijun! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
Webrevs
|
src/java.security.jgss/share/classes/sun/security/krb5/Config.java
Outdated
Show resolved
Hide resolved
src/java.security.jgss/share/classes/sun/security/krb5/Config.java
Outdated
Show resolved
Hide resolved
if (allConfs.containsKey(file)) { | ||
// Already parsed. This is allowed. | ||
return; | ||
} |
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.
Should this block of code be moved up before the line of dups = new HashSet<>(dups);
?
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.
That would allow a file to recursively include itself.
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.
I see. Would be nice to add a comment about this, so others are aware of this also.
interdiff impossible; taking evasive action reverted:
Several changes are made:
get
returns the first one andgetAll
returns all joining by spaces.Two new tests added. I also separately confirmed that they are parsed in the same way as MIT krb5. MIT krb5 ignores directory name after "include" but here it's an error.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25421/head:pull/25421
$ git checkout pull/25421
Update a local copy of the PR:
$ git checkout pull/25421
$ git pull https://git.openjdk.org/jdk.git pull/25421/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25421
View PR using the GUI difftool:
$ git pr show -t 25421
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25421.diff
Using Webrev
Link to Webrev Comment