Merge lp://qastaging/~tyhicks/snap-confine/fixes into lp://qastaging/~snappy-dev/snap-confine/trunk

Proposed by Tyler Hicks
Status: Merged
Merged at revision: 50
Proposed branch: lp://qastaging/~tyhicks/snap-confine/fixes
Merge into: lp://qastaging/~snappy-dev/snap-confine/trunk
Diff against target: 75 lines (+25/-8)
2 files modified
src/seccomp.c (+23/-8)
src/utils.c (+2/-0)
To merge this branch: bzr merge lp://qastaging/~tyhicks/snap-confine/fixes
Reviewer Review Type Date Requested Status
Michael Vogt (community) Approve
Review via email: mp+257019@code.qastaging.launchpad.net
To post a comment you must log in.
Revision history for this message
Tyler Hicks (tyhicks) wrote :

r48 addresses the following:

* The write_string_to_file() function doesn't flush the userspace buffer
  before calling fclose() and the return value of fclose() is not checked.
  This means that failed underlying write()s are not noticed.

r49 addresses the following:

* Lines in the seccomp filter file that exceed 80 characters are not handled
  properly in seccomp_load_filters() since it does not verify that a newline or
  EOF has been reached after each call to fgets().

r49 could probably be skipped for the release, if needed, since the seccomp filter is a whitelist and a line longer than 80 chars would just mean that any rule listed on that line would not be added to the whitelist.

Revision history for this message
Michael Vogt (mvo) wrote :

Thank you very much!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: