Skip to content

Fix a compilation error / warning due to missing check on return valu…#3

Open
alexmurray wants to merge 35 commits into
vathpela:security-featuresfrom
alexmurray:security-features
Open

Fix a compilation error / warning due to missing check on return valu…#3
alexmurray wants to merge 35 commits into
vathpela:security-featuresfrom
alexmurray:security-features

Conversation

@alexmurray

Copy link
Copy Markdown

…e from ftruncate()

vathpela added 30 commits May 29, 2020 12:50
The new strategy is set everything up in a header file, because it's
easier than keeping the command line straight across several compilers.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
This mostly just means strace won't show lseek() every other line in
most cases.

Signed-off-by: Peter Jones <pjones@redhat.com>
Since strace defaults to 32-bytes per string, the debug log looks like:

3054 write(16, "linux-nvme.c:84 parse_nvme(): cu"..., 87) = 87
3054 write(16, "linux.c:556 device_get(): dev_pr"..., 79) = 79
3054 write(16, "linux.c:521 device_get(): trying"..., 36) = 36
3054 write(16, "linux-ata.c:54 parse_ata(): entr"..., 33) = 33

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
This allows you to turn off declaration of efi_time_t and related
functions in the case where it's declared someplace else, such as in
some local code or another library's headers.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
log_() doesn't strictly need to be a macro, and making it one makes gcc
analyzer output harder to read, so make it a real function.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Since 054193d, what was once
efi_guid_redhat has been efi_guid_fwupdate.  Since that's used at places
that aren't exclusively Red Hat from, this is sub-optimal.
Additionally, nothing currently uses (and it's possible nothing ever
did) the invalid guid that is efi_redhat_2, though we can't remove the
related symbols.

This patch allocates a new guid value for efi_guid_redhat and
makes efi_guid_redhat_2 an alias for it.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
@vathpela
vathpela force-pushed the security-features branch 17 times, most recently from f98bc57 to 0d9bc77 Compare November 18, 2021 17:35
@vathpela
vathpela force-pushed the security-features branch 7 times, most recently from cdf93e9 to 67e26fd Compare December 9, 2021 18:42
@vathpela
vathpela force-pushed the security-features branch 3 times, most recently from 6a4569a to 86f9a3d Compare January 7, 2022 21:56
@frozencemetery
frozencemetery force-pushed the security-features branch 2 times, most recently from 620af55 to bec837e Compare January 10, 2022 18:36
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.

2 participants