#724056 invalid attributes are silently ignored

Package:
libpam-mount
Source:
libpam-mount
Description:
PAM module that can mount volumes for a user session
Submitter:
Carlo Contavalli
Date:
2013-09-22 15:18:06 UTC
Severity:
minor
#724056#5
Date:
2013-09-22 15:12:11 UTC
From:
To:
I had the line:

<volume group="users" fstype="tmpfs" path="mycache" mountpoint="/home/%(USER)/mycache" options="size=1G,uid=%(USER),mode=0700" />

in the pam_mount.conf.xml file. According to the man page, the attribute
"group" does not exist, I should have used "pgrp" instead, my config was
wrong.

I did not receive any warning or error even though the config file
contained invalid parameters. I checked auth.log, syslog, and well,
console output.

If invalid attributes are used, pam_mount should report them, it can
otherwise lead to dangerous mistakes.

(like in my case, cache being mounted for everyone, instead of just
members of the users group).