Skip to content
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

android-toold-adbd: Fix inconsistency between selinux configurations #863

Closed
wants to merge 4 commits into from

Conversation

quic-raghuvar
Copy link
Contributor

@quic-raghuvar quic-raghuvar commented Aug 22, 2024

ConditionPathExists is set to /etc/usb-debugging-enabled as part of meta-oe/recipes-devtools/android-tools/android-tools/android-tools-adbd.service file. However, in meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/android-tools-adbd.service file ConditionPathExists is set to /var/usb-debugging-enabled

This causes an internal inconsistency between selinux-enabled and -disabled configurations.

Hence, change ConditionPathExists=/var/usb-debugging-enabled to ConditionPathExists=/etc/usb-debugging-enabled

Reported-by: @lumag

@quic-raghuvar
Copy link
Contributor Author

Reported-by: @lumag

@lumag
Copy link
Contributor

lumag commented Aug 22, 2024

Missing DCO tag
Reported-by should also come as a commit message trailer rather than a useless GH commit.

@lumag
Copy link
Contributor

lumag commented Aug 22, 2024

Also rather than c&p original commit text, please explain that this change follows the earlier change and makes two instances of android-toold-adbd.service consistent with each other.

…d -disabled configurations

ConditionPathExists is set to /etc/usb-debugging-enabled as part of meta-oe/recipes-devtools/android-tools/android-tools/android-tools-adbd.service file. However, in meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/android-tools-adbd.service file ConditionPathExists is set to /var/usb-debugging-enabled

This causes an internal inconsistency between selinux-enabled and -disabled configurations.

Hence, change ConditionPathExists=/var/usb-debugging-enabled to ConditionPathExists=/etc/usb-debugging-enabled

Reported-by: @lumag
ConditionPathExists is set to /etc/usb-debugging-enabled as part of meta-oe/recipes-devtools/android-tools/android-tools/android-tools-adbd.service file. However, in meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/android-tools-adbd.service file ConditionPathExists is set to /var/usb-debugging-enabled

This causes an internal inconsistency between selinux-enabled and -disabled configurations.

Hence, change ConditionPathExists=/var/usb-debugging-enabled to ConditionPathExists=/etc/usb-debugging-enabled

Reported-by: @lumag
@quic-raghuvar quic-raghuvar changed the title android-tools-adbd.service: Change /var to /etc in ConditionPathExists android-toold-adbd: Fix inconsistency between selinux configurations Aug 22, 2024
@quic-raghuvar
Copy link
Contributor Author

@lumag Updated in commit 71d60d2a

@lumag
Copy link
Contributor

lumag commented Aug 23, 2024

Something strange happened with the commits in this PR. Please push a single commit with proper message, tags, etc.

@lumag
Copy link
Contributor

lumag commented Aug 26, 2024

@quic-raghuvar Also Reported-by trailer should use full name and email rather than the GitHub nickname.

@lumag
Copy link
Contributor

lumag commented Aug 26, 2024

@quic-raghuvar Please consult internal Qualcomm documentation on using Git and and on contributing to open-source projects.

@lumag
Copy link
Contributor

lumag commented Aug 30, 2024

@quic-raghuvar any updates? Or was it fire-and-forget request?

@lumag
Copy link
Contributor

lumag commented Sep 2, 2024

@quic-raghuvar so now this PR has 4 commits but 0 changes to the baseline.

@quic-raghuvar
Copy link
Contributor Author

This seems to have got merged on master. Hence, multiple commits are getting pushed and not able to ammend.

Rectified the commit message in the PR for scarthgap - PR866

@lumag
Copy link
Contributor

lumag commented Sep 2, 2024

@kraj any idea how it got merged, but the PR is not closed? (leaving the question of why it was merged aside).
Unfortunately git log doesn't shows useless data in the 'Commit' field.

@shr-project
Copy link
Contributor

@kraj any idea how it got merged, but the PR is not closed? (leaving the question of why it was merged aside). Unfortunately git log doesn't shows useless data in the 'Commit' field.

github is just read-only mirror of https://git.openembedded.org/meta-openembedded/. So the changes get merged on https://git.openembedded.org/meta-openembedded/ and PRs on github are manually closed after.

The changes are reviewed on openembedded-devel ML (see README) and @kraj accepts the PRs from github as well, but has extra manual work related to it, if you want the reviews to be more efficient than follow the README and use the ML to submit changes and to review them.

@lumag
Copy link
Contributor

lumag commented Sep 2, 2024

@shr-project yep, I'm using emails. @quic-raghuvar isn't (and it results in sad issues with these commits).

BTW: the README has text which can be interpreted as suggesting to send GH pull requests

You are encouraged to fork the mirror on GitHub https://github.com/openembedded/meta-openembedded
to share your patches, this is preferred for patch sets consisting of more than one patch.

I'll propose a change to README. But maybe pull requests should be closed / forbidden here.

@lumag
Copy link
Contributor

lumag commented Sep 2, 2024

@quic-raghuvar As this patch was merged, please close the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants