Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • C curl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Morello
  • Android
  • Platform
  • External
  • curl
  • Merge requests
  • !1

Make curl compile with pure-capabilities

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Lorenzo Carletti requested to merge lorenzo.carletti/curl:morello/android10-release into morello/android10-release Apr 13, 2021
  • Overview 7
  • Commits 2
  • Changes 1

This merge request makes curl compile using CHERI pure-capabilities.

It also has the benefit of adding data for libcurl's compilation.

It's a very small change that just adds a set of macros passed to the source

by clang if the code's compiling using pure-capabilities, plus a line to make curl

actually compile with pure-capabilities.

The following informations can be useful:

  • curl is not compiled by default. Adding it to android/device/arm/morello/morello_fvp_nano.mk might be necessary.

  • To test that curl was working properly, Morello's Android FVP was started, a remote shell was connected to it using adb, and then, on said remote shell, the following command was typed:

  • netcat -s 127.0.0.1 -p 8080 -L echo -e "HTTP/1.0 200 OK\nContent-Type: text/html\nContent-Length: 16\n\nThis is a test!\n"

  • On the FVP's shell, the following command was typed:

  • curl localhost:8080

Edited Apr 14, 2021 by Lorenzo Carletti
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: morello/android10-release