alpine 3.6
access weakness #374


Weakness Breakdown


An access weakness occurs when software does not properly implement permissions that could have unintended consequences if exploited by malicious actors. An example of this weakness is when a default username and password are set by the developer but do not get changed by the system administrator.

Warning code(s):

Ensure that umask is given most restrictive possible setting.

File Name:



The highlighted line of code below is the trigger point of this particular Alpine 3.6 access weakness.

		unlink_node(f, newnode);

	unhash_name(f, node);
	if (hash_name(f, node, newdir, newname) == -1) {
		err = -ENOMEM;
		goto out;

	if (hide)
		node->is_hidden = 1;

	return err;

static void set_stat(struct fuse *f, fuse_ino_t nodeid, struct stat *stbuf)
	if (!f->conf.use_ino)
		stbuf->st_ino = nodeid;
	if (f->conf.set_mode)
		stbuf->st_mode = (stbuf->st_mode & S_IFMT) |
				 (0777 & ~f->conf.umask);
	if (f->conf.set_uid)
		stbuf->st_uid = f->conf.uid;
	if (f->conf.set_gid)
		stbuf->st_gid = f->conf.gid;

static struct fuse *req_fuse(fuse_req_t req)
	return (struct fuse *) fuse_req_userdata(req);

static void fuse_intr_sighandler(int sig)
	(void) sig;
	/* Nothing to do */

struct fuse_intr_data {
	pthread_t id;
	pthread_cond_t cond;
	int finished;

static void fuse_interrupt(fuse_req_t req, void *d_)

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.