Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-4113

Accessing files between AGL services

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Lamprey 12.0.0
    • Lamprey 12.0.0
    • Security
    • None
    • qemux86-64
    • QEMU x86_64

      Hello Team,

      As per ourĀ  use-case, we need to develop 2 AGL services which needs to access files between them.

      1st service writes and stores data in a file. The 2nd service should access this file and perform some operation.

      Issue - 2nd service is not able to access the file stored by 1st service.

      Error thrown -

      fopen in 2nd service throws 'Permission denied' error.

      journalctl -f command output -

      ERROR: [API securityOperations] Unable to open revoke list file13-Permission denied
      Oct 13 11:46:23 qemux86-64 afbd-securityservice[1257]: [/home/AGL/agl-app/newservice/service/security_module.c:691,test]
      Oct 13 11:46:23 qemux86-64 audit[1257]: AVC lsm=SMACK fn=smack_inode_permission action=denied subject="User::App::service1" object="User::App::service2" requested=r pid=1257 comm="afbd-securityse" name="List.txt" dev="sda2" ino=260899

      'service1' and 'service2' are the two services and 'List.txt' is the filename created by service1. It needs to be accessed by service2.

      Query: Can such file access be done between two services. If yes, at which path should the file be stored so that it can be accessed by other service.

      Currently the file is stored in /var/scope-platform/service1/ path.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            wminer Walt Miner
            kathan90 kathan patel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified