mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
don't set default "users" group on home dirs
Fixes CAL-345. Changing group of home dir to the default "users" group might be a security risk because every user which belongs to the default "users" group might be able to access private data on home dirs of other users.
This commit is contained in:
parent
3f440ccb5a
commit
b412937699
7 changed files with 5 additions and 20 deletions
|
@ -115,21 +115,13 @@ UsersViewStep::onLeave()
|
|||
{
|
||||
m_jobs.clear();
|
||||
|
||||
m_jobs.append( m_widget->createJobs( m_userGroup, m_defaultGroups ) );
|
||||
m_jobs.append( m_widget->createJobs( m_defaultGroups ) );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
UsersViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
||||
{
|
||||
if ( configurationMap.contains( "userGroup" ) &&
|
||||
configurationMap.value( "userGroup" ).type() == QVariant::String )
|
||||
{
|
||||
m_userGroup = configurationMap.value( "userGroup" ).toString();
|
||||
}
|
||||
if ( m_userGroup.isEmpty() )
|
||||
m_userGroup = QStringLiteral( "users" );
|
||||
|
||||
if ( configurationMap.contains( "defaultGroups" ) &&
|
||||
configurationMap.value( "defaultGroups" ).type() == QVariant::List )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue