-
Notifications
You must be signed in to change notification settings - Fork 59
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
Solved the issue 134 #149
Solved the issue 134 #149
Conversation
Published at https://cs-pub-ro.github.io/operating-systems/149/ |
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.
Thanks for the contribution. Most of the checkers are working fine. I made a bunch of inline comments. Address them and then below is some more general feedback.
- Update the paths used by the tester scripts and Makefiles from
../
to../src/
- Tasks such as
aslr
andstack-protector
require changing the Makefiles. AddTODO
s to them. Ideally updategenerate_skels.py
to generate support Makefiles from those insolution/
. - Fix the CI/CD failures [1]. Spellcheck sometimes outputs false positives caused by words missing from these lists [2]. To fix those, make a PR to add those missing words this repo [2] (use the makefile in [2] to keep the lists sorted).
- Change your commit message to (according to the contributing guidelines [1] ):
chapters/data: Add checkers for `memory-security` tasks
<the description of your PR>
Resolves #134
<your signed-off-by line>
[1] https://github.com/cs-pub-ro/operating-systems/pull/149/checks
[2] https://github.com/open-education-hub/actions/tree/main/spellcheck/config
[3] https://github.com/cs-pub-ro/operating-systems/blob/main/CONTRIBUTING.md#commits
chapters/data/memory-security/drills/tasks/aslr/solution/tests/run_all_tests.sh
Outdated
Show resolved
Hide resolved
chapters/data/memory-security/drills/tasks/aslr/solution/tests/test.sh
Outdated
Show resolved
Hide resolved
chapters/data/memory-security/drills/tasks/stack-protector/solution/tests/graded_test.inc.sh
Outdated
Show resolved
Hide resolved
chapters/data/memory-security/drills/tasks/stack-protector/solution/tests/test.sh
Outdated
Show resolved
Hide resolved
chapters/data/memory-security/drills/tasks/stack-protector/solution/tests/test.sh
Outdated
Show resolved
Hide resolved
chapters/data/memory-security/drills/tasks/stack-protector/solution/tests/run_all_tests.sh
Outdated
Show resolved
Hide resolved
You didn't overwrite your first commit (
|
Instead of following the premium tutorial wrote by @teodutu (which he rewrites everytime in a different way), you could follow this guide [1]. The gif shows you a clear example of how to do a |
Published at https://cs-pub-ro.github.io/operating-systems/149/ |
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.
The checkers are OK. My only questions are why are you running sudo bash ./run_all_tests.sh
instead of just ./run_all_tests.sh
in make check
.
chapters/data/memory-security/drills/tasks/aslr/solution/tests/Makefile
Outdated
Show resolved
Hide resolved
chapters/data/memory-security/drills/tasks/bypassing-stack-protector/solution/tests/Makefile
Outdated
Show resolved
Hide resolved
chapters/data/memory-security/drills/tasks/stack-protector/solution/tests/Makefile
Outdated
Show resolved
Hide resolved
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.
The content is fine. Great job! Fix the linters and then I'll merge this.
bd580c3
to
01eb286
Compare
You need to rebase the |
@Alex-deVis can you figure out what's the conflict here? |
I'll take a look in 30m |
Done solving the issue 134 : chapters/data/memory-security/drills/tasks: Add solutions and checkers cs-pub-ro#134 Added the generate_skels.py infrastructure to generate the skeletons Added checkers for the tasks which needed one Updated the README.md for every task with useful information on how to use: -`make skels` command -the checker Added solution Updated generate_skels.py to add support for Makefile-uncommenting lines. Fixes cs-pub-ro#134 Signed-off-by: Vica Teodor Andrei <[email protected]>
solution