~mir-team/mir/development-branch

« back to all changes in this revision

Viewing changes to src/server/frontend/default_configuration.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2015-02-05 12:53:35 UTC
  • mfrom: (2285.2.5 mir2)
  • Revision ID: tarmac-20150205125335-5wrxux4dq3r2cqaw
options: add a config option to "chmod a=rw <endpoint>" if exposed on filesystem.

Approved by Daniel van Vugt, PS Jenkins bot, Alberto Aguirre, Kevin DuBois, Andreas Pokorny.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
            }
65
65
            else
66
66
            {
67
 
                return std::make_shared<mf::PublishedSocketConnector>(
 
67
                auto const result = std::make_shared<mf::PublishedSocketConnector>(
68
68
                    the_socket_file(),
69
69
                    the_connection_creator(),
70
70
                    threads,
71
71
                    *the_emergency_cleanup(),
72
72
                    the_connector_report());
 
73
 
 
74
                if (the_options()->is_set(options::arw_server_socket_opt))
 
75
                    chmod(the_socket_file().c_str(), S_IRUSR|S_IWUSR| S_IRGRP|S_IWGRP | S_IROTH|S_IWOTH);
 
76
 
 
77
                return result;
73
78
            }
74
79
        });
75
80
}