Use std::stringstream for parsing Smack rules
[platform/core/security/security-manager.git] / src / server / service / security-manager-common.cpp
1 /*
2  *  Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Contact: Rafal Krypa <r.krypa@samsung.com>
5  *
6  *  Licensed under the Apache License, Version 2.0 (the "License");
7  *  you may not use this file except in compliance with the License.
8  *  You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *  Unless required by applicable law or agreed to in writing, software
13  *  distributed under the License is distributed on an "AS IS" BASIS,
14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *  See the License for the specific language governing permissions and
16  *  limitations under the License
17  */
18 /**
19  * @file        security-manager-common.cpp
20  * @author      Jan Cybulski <j.cybulski@samsung.com>
21  * @version     1.0
22  * @brief       This file contains implementation of utility functions for security-manager
23  *
24  */
25
26
27 #include "security-manager-common.h"
28
29
30 namespace SecurityManager {
31
32 bool generateAppLabel(const std::string &appPkgId, std::string &label)
33 {
34     (void) appPkgId; //todo use pkgId to generate label
35     label = "User";
36     return true;
37 }
38
39 } // namespace SecurityManager
40