mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 23:32:39 +00:00
File type for fine-grained signature-verification controlling
This commit is contained in:
1 parent
48eb35cd78
commit
8128bd056e
58 files changed
+268
-207
No files matched your search
+3
-3
@@ -209,7 +209,7 @@ fuse_getattr (const char *path, struct stat *st)
|
||||
if (!ctx.file_info.dir)
|
||||
{
|
||||
grub_file_t file;
|
||||
file = grub_file_open (path);
|
||||
file = grub_file_open (path, GRUB_FILE_TYPE_GET_SIZE);
|
||||
if (! file && grub_errno == GRUB_ERR_BAD_FILE_TYPE)
|
||||
{
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
@@ -245,7 +245,7 @@ static int
|
||||
fuse_open (const char *path, struct fuse_file_info *fi __attribute__ ((unused)))
|
||||
{
|
||||
grub_file_t file;
|
||||
file = grub_file_open (path);
|
||||
file = grub_file_open (path, GRUB_FILE_TYPE_MOUNT);
|
||||
if (! file)
|
||||
return translate_error ();
|
||||
files[first_fd++] = file;
|
||||
@@ -309,7 +309,7 @@ fuse_readdir_call_fill (const char *filename,
|
||||
grub_file_t file;
|
||||
char *tmp;
|
||||
tmp = xasprintf ("%s/%s", ctx->path, filename);
|
||||
file = grub_file_open (tmp);
|
||||
file = grub_file_open (tmp, GRUB_FILE_TYPE_GET_SIZE);
|
||||
free (tmp);
|
||||
/* Symlink to directory. */
|
||||
if (! file && grub_errno == GRUB_ERR_BAD_FILE_TYPE)
|
||||
|
||||
Reference in new issue
Block a user