1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
#
# Copyright (c) 2014, McAfee, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this list
# of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright notice, this
# list of conditions and the following disclaimer in the documentation and/or other
# materials provided with the distribution.
#
# Neither the name of McAfee, Inc. nor the names of its contributors may be used
# to endorse or promote products derived from this software without specific prior
# written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
#
Install following packages to the rootstrap
and setup the build environment
*************************
dbus (Version 1.6.4)
dbus-glib (Version 0.100)
glib (Version 2.32.3)
gobject (Version 2.32.3)
dlog (Version 1.0)
Compiling for multiple architectures
*************************
DEVICE(arm) - use test/scripts/PrepareForDevice.sh
EMULATOR(x86) - use test/scripts/PrepareForEmul.sh
1. Tizen Content Screening Framework [SUPPORTED ON DEVICE]
============================================
(export script . ./test/scripts/PrepareForDevice.sh)
1.1 Building the framework library for device:
======================
- cd framework (change your current folder to 'framework')
- make clean;
- make
- The library can be found at 'lib/libsecfw.so'
1.2 Testing Tizen content screening framework library
======================
- cd test (change your current folder to 'test')
- Connect your test device (not support emulator)
- chmod +x ./scripts/MfeToDevice.sh (optional)
- ./scripts/MfeToDevice.sh
- sdb -d shell (make sure you have enough privilege to write or read all folders under /opt/)
- cd /tmp/tcs_test
- chmod +x ./Test.sh (optional)
- ./Test.sh
1.3 Test Tizen Web Protection framework library
======================
- cd test (change your current folder to 'test')
- Connect your test device (not support emulator)
- chmod +x ./scripts/MfeWPToDevice.sh (optional)
- ./scripts/MfeWPToDevice.sh
- sdb shell (make sure you have enough privilege to write or read all folders under /opt/)
- cd /tmp/twp_test
- chmod +x ./Test.sh (optional)
- ./Test.sh
2. Tizen Security Services [SUPPORTED ON EMULATOR]
============================================
(export script . ./test/scripts/PrepareForEmul.sh)
(cd framework/ (change your current folder to 'framework'))
2.1 Building the framework library for emulator:
======================
- make clean;
- make
- The library can be found at 'lib/libsecfw.so'
2.2 Building IPC Client library
======================
- make -f Makefile_channel_client clean
- make -f Makefile_channel_client
- The library can be found at 'lib/libscclient.so'
2.3 Building IPC Server library
======================
- make -f Makefile_channel_server clean;
- make -f Makefile_channel_server
- The library can be found at 'lib/libscserver.so'
2.4 Building Plugin control service
======================
- make -f Makefile_TPCSSerDaemon clean;
- make -f Makefile_TPCSSerDaemon
- The binary can be found at 'bin/TPCSSerDaemon'
2.5 Building Web protection control service
======================
- make -f Makefile_TWPSerDaemon clean
- make -f Makefile_TWPSerDaemon
- The binary can be found at 'bin/TWPSerDaemon'
2.6 Testing Plugin control service
======================
-cd test (change your folder to test)
-Start the emulator
-chmod +x ./scripts/MfeTPCSSerDaemonToEmul.sh
-sdb -e shell (make sure you have enough privilege to write or read all folders under /opt/, /usr/bin/ and /tmp)
-cd /usr/bin
-chmod +x ./Test.sh
- ./Test.sh
- ./tpcsserdaemontest
2.7 Testing Web protection control service
======================
-cd test (change your folder to test)
-Start the emulator
-chmod +x ./scripts/MfeTWPSerDaemonToEmul.sh
-sdb -e shell (make sure you have enough privilege to write or read all folders under /opt/, /tmp)
-cd /usr/bin
-chmod +x ./Test.sh
- ./Test.sh
- ./twpserdaemontest
|