~longsleep/snapcraft/snapcraft-debs-plugin

« back to all changes in this revision

Viewing changes to schema/snapcraft.yaml

  • Committer: Snappy Tarmac
  • Author(s): Sergio Schvezov
  • Date: 2015-09-16 20:11:49 UTC
  • mfrom: (167.2.1 snapcraft)
  • Revision ID: snappy_tarmac-20150916201149-jmw7zrsh3m1y356c
apparmor and seccomp by sergiusens approved by chipaca

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
$schema: http://json-schema.org/draft-04/schema#
2
2
 
 
3
definitions:
 
4
  security:
 
5
    type: object
 
6
    required:
 
7
      - apparmor
 
8
      - seccomp
 
9
    properties:
 
10
      apparmor:
 
11
        type: string
 
12
        format: file-path
 
13
      seccomp:
 
14
        type: string
 
15
        format: file-path
 
16
 
3
17
title: snapcraft schema
4
18
type: object
5
19
properties:
45
59
    type: array
46
60
    items:
47
61
      - type: object
 
62
        required:
 
63
          - name
 
64
          - start
48
65
        properties:
49
66
          name:
50
67
            type: string
55
72
          stop:
56
73
            type: string
57
74
            description: command executed to stop the service
58
 
        required:
59
 
          - name
60
 
          - start
 
75
          security-policy:
 
76
            $ref: "#definitions/security"
 
77
          security-override:
 
78
            $ref: "#definitions/security"
61
79
  binaries:
62
80
    type: array
63
81
    items:
64
82
      - type: object
 
83
        required:
 
84
          - name
65
85
        properties:
66
86
          name:
67
87
            type: string
69
89
          exec:
70
90
            type: string
71
91
            description: command executed to start the service
72
 
        required:
73
 
          - name
 
92
          security-policy:
 
93
            $ref: "#definitions/security"
 
94
          security-override:
 
95
            $ref: "#definitions/security"
74
96
  parts:
75
97
    type: object
76
98
    minProperties: 1